LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-02-2011, 01:54 PM   #1
NIlmandir
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: Disabled
Question Havin problems using CD command in Terminal


Okay, I just switched to Ubuntu 11.10 on my laptop. I love it. The problem is that when I try and switch directories in terminal, this happens.

Example:

Code:
A205:~$ cd /home
A205:/home$
A205:/home$ cd /Downloads
bash: cd: /Downloads: No such file or directory
A205:/home$
Now, I know I have a directory called downloads, I just can't seem to get to it. What step am I missing?

Thanks in advance.

Last edited by NIlmandir; 11-02-2011 at 01:55 PM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 11-02-2011, 02:03 PM   #2
ptrivino
Member
 
Registered: May 2008
Location: San Diego CA
Distribution: CentOS
Posts: 34

Rep: Reputation: 5
No slash

If the directory is "/home/Downloads", take the slash off, i .e.

cd Downloads

Paul
 
2 members found this post helpful.
Old 11-02-2011, 02:05 PM   #3
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 44
Try
Code:
locate Downloads
Did you try
Code:
ls -a
 
1 members found this post helpful.
Old 11-02-2011, 02:06 PM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 11-02-2011, 02:07 PM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 12,602

Rep: Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677
also it should be
/home/(user name)/Downloads
or
~/Downloads
the "~" is your own personal HOME folder
 
2 members found this post helpful.
Old 11-02-2011, 02:20 PM   #6
NIlmandir
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by etech3 View Post
Try
Code:
locate Downloads
Did you try
Code:
ls -a
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
Thanks for the help!
 
Old 11-02-2011, 03:00 PM   #7
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 44
Thumbs up Glad it help!

Glad it worked out for ya

When your problem has been resolved, please mark the thread as [SOLVED]
 
  


Reply

Tags
command line, directory, filename, finding


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
installing/terminal/command promote Problems Skullsoldier Linux - Newbie 7 10-28-2010 05:16 AM
Ubuntu 8.04....havin problems....never ending story. linux-junkie Ubuntu 4 08-21-2008 01:10 PM
fdisk Terminal command problems - help appreciated AlestorJN DamnSmallLinux 3 06-24-2007 11:19 PM
just havin` problems with my mail server logicutz Slackware 2 09-10-2005 03:38 PM
Terminal command problems rogleale Linux - Newbie 3 06-21-2004 06:41 AM


All times are GMT -5. The time now is 08:49 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration