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?
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 theroot
user. This user doesn't have aDesktop
by default since root isn't supposed to log in graphically, so you are getting that error simply because you are trying tocd
into a directory that doesn't exist.If you want to
cd
into your desktop, try:Although, if you are in
/root
, you are probably logged in as root, so that won't work either.