Ubuntu – -bash: cd: Desktop: No such file or directory

cd-commandcommand linedirectory

I'm trying to type:

cd Desktop

from the /root directory, but when I do it comes up with the error:

-bash: cd: Desktop: No such file or directory

What am I doing wrong?

Best Answer

The /root directory is the home directory of the root user. This user doesn't have a Desktop by default since root isn't supposed to log in graphically, so you are getting that error simply because you are trying to cd into a directory that doesn't exist.

If you want to cd into your desktop, try:

cd ~/Desktop

Although, if you are in /root, you are probably logged in as root, so that won't work either.

Related Question