[SOLVED] Havin problems using CD command in Terminal
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Also, if the directory "Downloads" is in your home directory (usually /home/user (or ~ for short), where user is your username), then you don't want to cd to /home first; just "cd Downloads" from your home directory. Edit: Also, file and directory names are case sensitive, so "Downloads" and "downloads" aren't the same.
This actually helped. I switched to the home directory and when I used the ls command it showed that I was not in the right directory. I wasn't in my main directory yet. so I had to keep using cd to get there. I hope that explains it.
Code:
robbybobby@robbybobby-Satellite-A205:/$ ls -s
total 88
4 bin 12 etc 16 lost+found 0 proc 4 selinux 4 usr
4 boot 4 home 4 media 4 root 4 srv 4 var
4 cdrom 0 initrd.img 4 mnt 0 run 0 sys 0 vmlinuz
0 dev 4 lib 4 opt 4 sbin 4 tmp
robbybobby@robbybobby-Satellite-A205:/$ cd /home
robbybobby@robbybobby-Satellite-A205:/home$ ls -a
. .. robbybobby
robbybobby@robbybobby-Satellite-A205:/home$ ls -s
total 4
4 robbybobby
robbybobby@robbybobby-Satellite-A205:/home$ cd 4
bash: cd: 4: No such file or directory
robbybobby@robbybobby-Satellite-A205:/home$ cd robbybobby
robbybobby@robbybobby-Satellite-A205:~$ ls -s
total 40
4 Desktop 4 Documents 4 Music 4 Public 4 Ubuntu One
4 Desktop Backgrounds 4 Downloads 4 Pictures 4 Templates 4 Videos
robbybobby@robbybobby-Satellite-A205:~$ cd Downloads
robbybobby@robbybobby-Satellite-A205:~/Downloads$ ^C
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.