user3029841
user3029841

Reputation: 21

cd Desktop gives an error no such file/ directory in terminal

In Terminal, on mac, when i use the cd Desktop to view files through the terminal i get an error "no such file or directory" When i checked the current working directory, it shows I'm in /home/ I do not understand why suddenly it doesn't work. I tried using a .profile file to have some alias and path change. Could this change in .profile file cause this error?

Upvotes: 1

Views: 11354

Answers (2)

Harshal Dharpure
Harshal Dharpure

Reputation: 5

First of all, make a desktop folder in the home folder, then open the command prompt

Also, try the " cd desktop " command you will not get an error. Always remember the case-sensitive words before running Command.

Upvotes: 0

Adrian Krupa
Adrian Krupa

Reputation: 1937

Try use cd (with no parameters) for jump to your home directory which should be /Users/username. Then use cd Desktop. Alternatively you can do "cd ~/Desktop"

Upvotes: 2

Related Questions