LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-10-2014, 04:34 PM   #1
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,664

Rep: Reputation: 136Reputation: 136
how do I navigate to the downloads folder in the terminal?


I've tried but just can't seem to get there. Thanks!
 
Old 03-10-2014, 04:56 PM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,340
Blog Entries: 11

Rep: Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311
Code:
cd Downloads
NOTE: it's case sensitive.
you can also use cd Down<tab><enter> and let the terminal auto-complete it for you.
 
1 members found this post helpful.
Old 03-10-2014, 06:20 PM   #3
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,664

Original Poster
Rep: Reputation: 136Reputation: 136
Quote:
Originally Posted by Habitual View Post
Code:
cd Downloads
NOTE: it's case sensitive.
you can also use cd Down<tab><enter> and let the terminal auto-complete it for you.
Thanks Habitual, but that's what I tried before without any luck. (see screenshot) Am I doing something wrong?
Attached Thumbnails
Click image for larger version

Name:	DownloadsAttempt.png
Views:	36
Size:	18.0 KB
ID:	14929  
 
Old 03-10-2014, 07:10 PM   #4
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
try it like this
Code:
cd /home/gregory/Downloads
Once you get to the downloads directory to see your files there type
Code:
ls -l
the -l is a small L not a number 1

good luck to you.
 
1 members found this post helpful.
Old 03-10-2014, 07:16 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,263

Rep: Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358
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.
 
1 members found this post helpful.
Old 03-10-2014, 07:24 PM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
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:

Code:
[user@centos ~]$ pwd
/home/user
[user@centos ~]$ cd ..
[user@centos home]$ pwd
/home
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 .

Last edited by lleb; 03-10-2014 at 07:30 PM.
 
1 members found this post helpful.
Old 03-10-2014, 07:31 PM   #7
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,664

Original Poster
Rep: Reputation: 136Reputation: 136
thanks

Quote:
Originally Posted by TroN-0074 View Post
try it like this
Code:
cd /home/gregory/Downloads
Once you get to the downloads directory to see your files there type
Code:
ls -l
the -l is a small L not a number 1

good luck to you.
Yep. Did the trick! Thanks.
 
Old 03-10-2014, 07:33 PM   #8
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,664

Original Poster
Rep: Reputation: 136Reputation: 136
Quote:
Originally Posted by yancek View Post
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" :)
 
Old 03-10-2014, 07:37 PM   #9
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,664

Original Poster
Rep: Reputation: 136Reputation: 136
Quote:
Originally Posted by lleb View Post
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:

Code:
[user@centos ~]$ pwd
/home/user
[user@centos ~]$ cd ..
[user@centos home]$ pwd
/home
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.
 
Old 03-11-2014, 04:19 AM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,362

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
You may find this useful http://rute.2038bug.com/index.html.gz
 
1 members found this post helpful.
Old 03-11-2014, 05:10 PM   #11
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,664

Original Poster
Rep: Reputation: 136Reputation: 136
Quote:
Originally Posted by chrism01 View Post
You may find this useful http://rute.2038bug.com/index.html.gz
Thanks Chris, The guide looks great (and exhausting! lol) but maybe I should focus on a Ubuntu guide because I'm using Xubuntu?
 
Old 03-12-2014, 03:22 AM   #12
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by Gregg Bell View Post
Thanks Chris, The guide looks great (and exhausting! lol) but maybe I should focus on a Ubuntu guide because I'm using Xubuntu?
linux is linux at the core, specifically when it comes to the command line.
 
1 members found this post helpful.
Old 03-12-2014, 04:25 AM   #13
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Another good site/book for all that CLI stuff:
http://linuxcommand.org/
 
1 members found this post helpful.
Old 03-12-2014, 04:49 AM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,362

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
Also, just take your time; don't try to learn it all in one day
 
1 members found this post helpful.
Old 03-12-2014, 08:50 AM   #15
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian
Posts: 1,054

Rep: Reputation: 279Reputation: 279Reputation: 279
Just entering cd<enter> will take you directly to your home directory, no need to enter the /home/username part.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I give names to folder paths to navigate through them easily?? abi Linux - Newbie 10 01-18-2012 10:25 AM
Unable to navigate to folder on server via browser SupremeUK Linux - Server 1 09-30-2011 05:29 AM
All of my folder icons changed to the Downloads folder icon? Supreme1012 Linux - Software 1 08-17-2010 04:45 PM
Navigate in terminal markf@no-exit-studio Linux - Newbie 2 10-13-2008 05:06 PM


All times are GMT -5. The time now is 12:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration