LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-04-2010, 11:00 AM   #1
bjrn64
Member
 
Registered: Jan 2008
Location: cheltenham
Distribution: asus 1005ha/2gb ubuntu 9.10 + debian lenny on a tower and asus 901 /1gb backtrack 4
Posts: 33
Blog Entries: 2

Rep: Reputation: 16
command line cd command not working right


hi using netbook asus 1005ha with lucid beta 1 with most of updates on
learning to use the CLI and headaches cd command does not seem to reconise directories here is a sample
Code:
mr-smith@mr-smith-laptop:~$ pwd
/home/mr-smith
mr-smith@mr-smith-laptop:~$ cd/home/mr-smith/downloads
bash: cd/home/mr-smith/downloads: No such file or directory
mr-smith@mr-smith-laptop:~$ pwd
/home/mr-smith
mr-smith@mr-smith-laptop:~$ cd/home/mr-smith/desktop
bash: cd/home/mr-smith/desktop: No such file or directory
mr-smith@mr-smith-laptop:~$ cd /home
mr-smith@mr-smith-laptop:/home$ ls
mr-smith
mr-smith@mr-smith-laptop:/home$ cd/home/mr-smith
bash: cd/home/mr-smith: No such file or directory
mr-smith@mr-smith-laptop:/home$
yeh i know read the f#####g manual i am but any help would be greatly accepted tried sudo with same commands same problem did have a problem on my debian system that was to do with paths this is not the same
on a different footnote anyone thinking of upgrading to lucid sit tight on 9.10 there are still to many issues that need ironing out for a system that is your main system
Attached Files
File Type: txt cd-command.txt (536 Bytes, 5 views)

Last edited by pixellany; 05-04-2010 at 11:08 AM.
 
Old 05-04-2010, 11:06 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
OK--I won't tell you to RTFM, but the FM is where you will find this:

You have to have a space after the "cd". This is true of all commands.

And this is what you did here:
Code:
mr-smith@mr-smith-laptop:~$ cd /home
mr-smith@mr-smith-laptop:/home$ ls
mr-smith
PS--Please use code tags to preserve formatting.

Last edited by pixellany; 05-04-2010 at 11:09 AM.
 
Old 05-04-2010, 11:07 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

It's cd /home/mr-smith/downloads, not cd/home/mr-smith/downloads.
 
Old 05-05-2010, 12:10 AM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,530

Rep: Reputation: 238Reputation: 238Reputation: 238
You need some white space between the command and the parameters to the command.

$ cd [SPACE] /path/to/stuff

If there's some fancy alias messing with you, you can opt out of aliasing with a \ prefix.
$ \cd /path/to/stuff
 
1 members found this post helpful.
Old 05-05-2010, 12:22 AM   #5
satyahari
LQ Newbie
 
Registered: Apr 2010
Posts: 7

Rep: Reputation: 1
hi,

Whenever u try to enter the commands from command line,there should be atleast one white space between command and arguments to command.

Eg:For long listing of files
ls -l not ls-l
similary;

cd /home/mr-smith/desktop is correct way of entering the command.Not
cd/home/mr-smith/desktop

Thanks,
satya
 
Old 05-10-2010, 04:28 AM   #6
bjrn64
Member
 
Registered: Jan 2008
Location: cheltenham
Distribution: asus 1005ha/2gb ubuntu 9.10 + debian lenny on a tower and asus 901 /1gb backtrack 4
Posts: 33
Blog Entries: 2

Original Poster
Rep: Reputation: 16
thanks

thankyou to all really feel stupid for not spotting it
have used the thumb on all of your helpful posts

im only just learning the CLI it is fun and im enjoying it and for me
thats important thanks again to all
 
Old 05-10-2010, 05:46 AM   #7
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
The directory names are case sensitive. Are you certain that you don't have a ~/Downloads or ~/Download directory instead? ~/Desktop is standard.
 
  


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
./configure command isn't working in command line jumpmansbro Linux - Newbie 20 01-22-2009 08:29 PM
Perl working at command line, but not in Apache nutthick Linux - Software 3 04-12-2006 07:02 AM
working with hidden files from the command line indygreen Linux - General 4 01-04-2006 08:50 AM
FTP stopped working, except on the command line sekelsenmat Linux - Networking 5 07-03-2005 07:44 AM
Backspace Not Working In Command Line sanjith11 Programming 1 04-22-2004 07:42 AM


All times are GMT -5. The time now is 11:09 PM.

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