[SOLVED] how do I navigate to the downloads folder in the 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.
The reason you got the error is because you were in the /home/user/Desktop directory and there is no Downloads sub-directory there, so what TroN-0074 said should get you there from anywhere.
might not be a bad idea to learn a few basic CLI commands:
cd = change directory, keeping in mind that Linux requires full path sourcing.
ls = list with several options, -l is long, -a is all (show hidden directories) -F gives details about the type of file/directory you are looking at. those are the three i put into an alias
Code:
alias d='/bin/ls -laF'
alias dird='/bin/ls -laFp | grep /'
this gives a faster way to get a long list by just hitting 'd', and if i ONLY want a list of directories, like in MS Dos i can use the 'dird' shortcut.
also with the cd command the use of .. moves you up one layer in the tree:
pwd = show the current path were you are residing in the file system.
as TroN-0074 pointed out about, your Download directory is located in the root of your /home/user/ directory, not in your Desktop path.
from your desktop you could use the .. I showed above as follows:
Code:
cd ..
ls -laFp | grep /
to look for your Download directory. Then you can use the shortcut information provided above.
as I dont have a Desktop directory Ill show you from my Pi directory:
Code:
[user@centos Pi]$ d
total 24
drwxrwxrwx. 4 user user 4096 Dec 12 18:02 ./
drwxr--r--. 20 user user 4096 Mar 10 20:24 ../
-rwxrwxrwx. 1 user user 6148 Dec 12 18:02 .DS_Store*
drwxrwxrwx. 2 user user 4096 Feb 15 2013 rpfr-17-xfce-r1/
drwxrwxrwx. 2 user user 4096 Feb 15 2013 rpfr-17-xfce-r2/
[user@centos Pi]$ pwd
/home/user/Pi
[user@centos Pi]$ cd ..
[user@centos ~]$ pwd
/home/user
[user@centos ~]$ dird
drwxr--r--. 20 user user 4096 Mar 10 20:24 ./
drwxrwxrwx. 7 root root 4096 Feb 2 2013 ../
drwxrwxrwx. 3 user user 4096 May 18 2013 .cache/
drwxrwxrwx. 4 user user 4096 May 18 2013 .config/
drwxrwxrwx. 6 user user 4096 Feb 7 2013 Friday/
drwxrwxrwx. 6 user user 4096 Feb 7 2013 Monday/
drwxrwxrwx. 4 user user 4096 Dec 12 18:02 Pi/
drwxrwxrwx. 6 user user 4096 Feb 7 2013 Saturday/
drwx------. 2 user user 4096 Jan 23 19:47 .ssh/
drwxrwxrwx. 6 user user 4096 Feb 7 2013 Sunday/
drwxrwxrwx. 6 user user 4096 Feb 7 2013 Thursday/
drwxrwxrwx. 6 user user 4096 Feb 7 2013 Tuesday/
drwxrwxrwx. 6 user user 4096 Jan 8 18:18 Wednesday/
[user@centos ~]$ cd Saturday/
[user@centos Saturday]$ pwd
/home/user/Saturday
boy i need to fix my permissions in that directory .
The reason you got the error is because you were in the /home/user/Desktop directory and there is no Downloads sub-directory there, so what TroN-0074 said should get you there from anywhere.
Thanks yancek. Your explanation helped. I was able to navigate to different files too. Appreciate it.
Last edited by Gregg Bell; 03-10-2014 at 07:33 PM.
Reason: added one letter "o" :)
might not be a bad idea to learn a few basic CLI commands:
cd = change directory, keeping in mind that Linux requires full path sourcing.
ls = list with several options, -l is long, -a is all (show hidden directories) -F gives details about the type of file/directory you are looking at. those are the three i put into an alias
Code:
alias d='/bin/ls -laF'
alias dird='/bin/ls -laFp | grep /'
this gives a faster way to get a long list by just hitting 'd', and if i ONLY want a list of directories, like in MS Dos i can use the 'dird' shortcut.
also with the cd command the use of .. moves you up one layer in the tree:
pwd = show the current path were you are residing in the file system.
as TroN-0074 pointed out about, your Download directory is located in the root of your /home/user/ directory, not in your Desktop path.
from your desktop you could use the .. I showed above as follows:
Code:
cd ..
ls -laFp | grep /
to look for your Download directory. Then you can use the shortcut information provided above.
as I dont have a Desktop directory Ill show you from my Pi directory:
Code:
[user@centos Pi]$ d
total 24
drwxrwxrwx. 4 user user 4096 Dec 12 18:02 ./
drwxr--r--. 20 user user 4096 Mar 10 20:24 ../
-rwxrwxrwx. 1 user user 6148 Dec 12 18:02 .DS_Store*
drwxrwxrwx. 2 user user 4096 Feb 15 2013 rpfr-17-xfce-r1/
drwxrwxrwx. 2 user user 4096 Feb 15 2013 rpfr-17-xfce-r2/
[user@centos Pi]$ pwd
/home/user/Pi
[user@centos Pi]$ cd ..
[user@centos ~]$ pwd
/home/user
[user@centos ~]$ dird
drwxr--r--. 20 user user 4096 Mar 10 20:24 ./
drwxrwxrwx. 7 root root 4096 Feb 2 2013 ../
drwxrwxrwx. 3 user user 4096 May 18 2013 .cache/
drwxrwxrwx. 4 user user 4096 May 18 2013 .config/
drwxrwxrwx. 6 user user 4096 Feb 7 2013 Friday/
drwxrwxrwx. 6 user user 4096 Feb 7 2013 Monday/
drwxrwxrwx. 4 user user 4096 Dec 12 18:02 Pi/
drwxrwxrwx. 6 user user 4096 Feb 7 2013 Saturday/
drwx------. 2 user user 4096 Jan 23 19:47 .ssh/
drwxrwxrwx. 6 user user 4096 Feb 7 2013 Sunday/
drwxrwxrwx. 6 user user 4096 Feb 7 2013 Thursday/
drwxrwxrwx. 6 user user 4096 Feb 7 2013 Tuesday/
drwxrwxrwx. 6 user user 4096 Jan 8 18:18 Wednesday/
[user@centos ~]$ cd Saturday/
[user@centos Saturday]$ pwd
/home/user/Saturday
boy i need to fix my permissions in that directory .
Thanks lleb. I'm absorbing this stuff little by little. (I'm really just a writer. lol) But I'm getting it. The commands you shared are really helpful.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.