Every time I try to go to this directory it says it does not exist, but it does exist!
~$ sudo cd /Downloads
sudo: cd: command not found
~$ cd /downloads
bash: cd: /downloads: No such file or directory
Every time I try to go to this directory it says it does not exist, but it does exist!
~$ sudo cd /Downloads
sudo: cd: command not found
~$ cd /downloads
bash: cd: /downloads: No such file or directory
The right command should be:
cd Downloads
Note that the first letter is capitalized. This also applies to other directory names in $HOME
.
Desktop
Documents
Downloads
Dropbox
Music
Pictures
PlayOnLinux's virtual drives
Public
Templates
Videos
$HOME
, i.e. cd /home/USER_NAME/Desktop && cd Downloads/
shows No such file or directory
– M. Becerra
Jan 14 '17 at 11:59
cd ~/Downloads
, where ~
is substituted by the user's home directory. That should work when then folder exists.
– Thomas
Jan 14 '17 at 12:23
cd /home/USER_NAME/Downloads
– M. Becerra Jan 14 '17 at 11:39HOME
already, which is the normal case when you just opened the terminal, you can runcd Downloads
– M. Becerra Jan 14 '17 at 12:10cd /home/$USER/Downloads/
$USER will be changed to current active user ;) – Rinzwind Jan 14 '17 at 12:44cd ~/Downloads
orcd $HOME/Downloads
, which are equivalent – wjandrea Mar 23 '18 at 00:10