Question:
A question about Linux (Fedora)?
jbf1002
2012-10-31 21:38:18 UTC
I have been trying to learn the Fedora Terminal, unfortunately, it keeps telling me my directories don't exist. Here is what I do:

[jbf1001@JBFLinux ~]$ cd /home/documents
bash: cd: /home/documents: No such file or directory

is there something i am doing wrong?
Also, i try to run as the super user (i think thats what this is):

[jbf1001@JBFLinux ~]$ su
Password:
[root@JBFLinux jbf1001]# cd /home/documents
bash: cd: /home/documents: No such file or directory

i know or a fact that i have a documents directory and that it is spelled the same. Help please??
Three answers:
potatocouch
2012-10-31 22:39:55 UTC
no need for the "/" before the directory. also note that everything is case sensitive. please make use of your tab key. it really helps. after doing an "ls" command you will see its contents. type "cd" followed by a space and then press the tab key. it will show you what files can be used next. in your case type a capital "D" and then press tab again. it will limit all the files/directories that begin with the capital letter (remember it's case sensitive) "D". type "oc" and then press tab.



below is a copy and paste of me pressing the tab button



potato@msi:~$ ls d

development/ documents/ downloads/



potato@msi:~$ ls do

documents/ downloads/



potato@msi:~$ ls documents/
John
2012-11-01 04:47:55 UTC
Try "ls" first so that you can see what directory that you are in then use "cd".



Here is a cool command wallpaper for beginners :) http://www.gefoo.org/generalfoo/uploads/2011/03/linux-wallpaper-for-beginners.jpg
Leslie S
2012-11-03 00:33:21 UTC
The directory name is not documents but Documents.



you would do cd

then cd Documents



or cd ~/Documents



or

cd /home/yourUserId/Documents


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...