Celeb Glow
general | March 12, 2026

Can't change directories in terminal

I am trying to make a hello world program work on my Mac. Every time I go to change a directory I get a message that says:

-bash: cd: documents No such file or directory exists.

I know the documents directory is there.

cd Documents
-bash: cd: documents: No such file or directory
2

1 Answer

You're likely not starting from the correct directory. Try cd ~/Documents or cd /Users/(Your Username here)/Documents.

Also note that, depending on formatting of the disk, your filesystem may be Case Sensitive, meaning documents and Documents are two completely different locations.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy