LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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: 2,034

Rep: Reputation: 176Reputation: 176
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 Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
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:	5609
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: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
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/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
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: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
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: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
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: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
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/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

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: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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 Stable and Unstable
Posts: 1,943

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:33 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
Open Source Consulting | Domain Registration