Results 1 to 7 of 7

Thread: How to cd to desktop????

  1. #1
    Join Date
    Apr 2011
    Beans
    30

    How to cd to desktop????

    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

  2. #2
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: How to cd to desktop????

    Capital D

    ~ is shorthand for your $HOME

    so

    Code:
    cd ~/Desktop

  3. #3
    Join Date
    Apr 2011
    Beans
    30

    Re: How to cd to desktop????

    Quote Originally Posted by nothingspecial View Post
    Capital D

    ~ is shorthand for your $HOME

    so

    Code:
    cd ~/Desktop
    all directory names are case-sensitive, then?

    Chris

  4. #4
    Join Date
    Dec 2010
    Location
    Fukuoka, Japan
    Beans
    1,064
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: How to cd to desktop????

    Full path would be:
    /home/chris/Desktop
    Last edited by whatthefunk; August 26th, 2011 at 02:31 PM. Reason: forgot capital

  5. #5
    Join Date
    Dec 2010
    Location
    Fukuoka, Japan
    Beans
    1,064
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: How to cd to desktop????

    Quote Originally Posted by pcvchriskmg View Post
    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:

    Code:
    ls

  6. #6
    Join Date
    Apr 2011
    Beans
    30

    Re: How to cd to desktop????

    OK,thanks guys.

    Consider this this thread CLOSED.

  7. #7
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: How to cd to desktop????

    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).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •