PDA

View Full Version : [ubuntu] How to cd to desktop????



pcvchriskmg
August 26th, 2011, 02:27 PM
This has been driving me crazy for ten minutes.

On the cli, I am at chris@chris-studio-1737 (studio-1737 is the name of my computer).

I need to access the desktop via the cd command.

I have tried:

cd /desktop
cd /home/desktop
cd home/chris/desktop
cd /chris/desktop
cd desktop

And some other combinations.

I get the following response:

bash: cd: home/chris/desktop: Not a directory

Can anyone explain to me what is going on, please?

Thanks,
Chris

nothingspecial
August 26th, 2011, 02:29 PM
Capital D

~ is shorthand for your $HOME

so


cd ~/Desktop

pcvchriskmg
August 26th, 2011, 02:31 PM
Capital D

~ is shorthand for your $HOME

so


cd ~/Desktop

all directory names are case-sensitive, then?

Chris

whatthefunk
August 26th, 2011, 02:31 PM
Full path would be:
/home/chris/Desktop

whatthefunk
August 26th, 2011, 02:33 PM
all directory names are case-sensitive, then?

Chris

Yes they are. From your home directory, you can do the following to see all the directories:


ls

pcvchriskmg
August 26th, 2011, 02:36 PM
OK,thanks guys.

Consider this this thread CLOSED.

nothingspecial
August 26th, 2011, 02:36 PM
Everything you type into the shell is case sensetive........



........ unless you are using something like grep and use the ignore case option (but don't worry about that right now).