LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   command line cd command not working right (http://www.linuxquestions.org/questions/linux-software-2/command-line-cd-command-not-working-right-805864/)

bjrn64 05-04-2010 12:00 PM

command line cd command not working right
 
1 Attachment(s)
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

pixellany 05-04-2010 12:06 PM

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.

druuna 05-04-2010 12:07 PM

Hi,

It's cd /home/mr-smith/downloads, not cd/home/mr-smith/downloads.

Shadow_7 05-05-2010 01:10 AM

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

satyahari 05-05-2010 01:22 AM

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

bjrn64 05-10-2010 05:28 AM

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

jschiwal 05-10-2010 06:46 AM

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


All times are GMT -5. The time now is 03:54 AM.