Can't Change To Document Directory
First, check that there is in fact a folder called "Documents" in the current directory by using the ls
command (Linux is case sensitive for files and directories). After executing this command, you will see the folders that exist in the current directory. To see your current location in Terminal, type pwd
and it will show you where you are.
For example:
$ pwd
/home/allejo/
$ ls
Development Documents Downloads
If you would like to go into your home directory in Terminal, simply type: cd
or cd ~/
. Either command will return you to /home/<username>/
.
Related videos on Youtube
Mike_The_B0ss
Updated on September 18, 2022Comments
-
Mike_The_B0ss over 1 year
I'm brand new to Linux, and know pretty much nothing. I wanted to learn about the Linux terminal and started watching a video, the video showed how to switch directories and they switched to the Documents directory. I tried both "cd /Documents" and "cd Documents" both of which said the same error message. "No Such File Or Directory". I am really sorry for my lack of knowledge, I hope I can get this sorted. Thanks in advance guys :)
-
terdon about 10 yearsRun
ls
to see a list of files and directories, if you have noDocuments
directory in your current location, you will get that error.
-