Quote:
Originally Posted by wildad1
alan-Inspiron-5537 alan # cd /Downloads
bash: cd: /Downloads: No such file or directory
alan-Inspiron-5537 alan # cd /music
bash: cd: /music: No such file or directory
alan-Inspiron-5537 alan # cd /Music
bash: cd: /Music: No such file or directory
alan-Inspiron-5537 alan #
|
Hi,
The pwd command gives you your Present Working Directory. As you saw, it was /home/alan.
Now you should understand the Linux filesystem standard a little bit. The root of the filesystem is /. "/" actually is a directory. And if you do
you get into the directory /. If you do
ls in the directory / you will see the content of your root filesystem.
When you are doing
Bash is understanding that you are seeking the directory Downloads under directory /. And if you tried the above
ls command, you will understand that there is no Downloads or Music under directory /.
The directories you are looking for are under /home/alan. So, you should either be in /home/alan and do
or from anywhere else you can do
Code:
cd /home/alan/Downloads
OR
cd ~/Downloads
The "~" means "my home directory". It is contained in the variable HOME, which you can check with
If you are user alan, it should give you /home/alan. If you are user root, it will give you /root.