Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have a folder that I want to init with git, but to do that I have to 'navigate' to that folder using cd. The problem is when I write cd Applications, that folder is empty and I cannot go into following folders.

The path I want to access is /Application/MAMP/htdocs.

I am using OS X 10.8.2.

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

If the current directory is ~/, cd Applications goes to ~/Applications/ (which doesn't exist by default, but I guess you have an empty folder there). Try adding a slash to the start: cd /Applications/.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.