Results 1 to 6 of 6

Thread: Basic Commands Not Working

  1. #1
    Join Date
    Apr 2011
    Beans
    3

    Question Basic Commands Not Working

    Hello.

    This is very strange. I opened a terminal and entered the command:

    ace@Front-Office:~$ sudo cd /home/ace/

    and got this message:

    sudo: cd: command not found

    I don't understand this.

    Also, I was trying to change directories and got this.

    ace@Front-Office:/home$ cd /home/ace/desktop/work/
    bash: cd: /home/ace/desktop/work/: No such file or directory

    I know that this folder exists on the desktop

    Any help would be appreciated.

  2. #2
    Join Date
    Oct 2008
    Beans
    35
    Distro
    Ubuntu Development Release

    Re: Basic Commands Not Working

    Hello,
    There seems to be a few issues with your commands, please try
    Code:
    sudo su
    cd /home/ace/
    rather then
    Code:
    sudo cd /home/ace
    (Do you really need to do this as root however???, you are logged in as "ace" afterall)


  3. #3
    Join Date
    Jun 2005
    Location
    England
    Beans
    2,696

    Re: Basic Commands Not Working

    As said before don't use sudo to change directories.

    Also "desktop" will be "Desktop" it has a capital

  4. #4
    Join Date
    Apr 2010
    Location
    England
    Beans
    3,286

    Re: Basic Commands Not Working

    cd is a in-built shell command; it doesn't have an actual executable like most commands, so it can't be used with sudo. If you need to cd to a folder that you don't have read permissions to, use a root shell:

    Code:
    sudo -i
    http://xkcd.com/293/
    There are 10 kinds of people in this world: Those who understand ternary, those who don't, and those who confuse it with binary.

  5. #5
    Join Date
    Apr 2011
    Beans
    3

    Smile Re: Basic Commands Not Working

    Got it, thanks.

    I didn't think that case mattered in Ubuntu.

  6. #6
    Join Date
    Apr 2010
    Location
    England
    Beans
    3,286

    Re: Basic Commands Not Working

    Nah, you're thinking of Windows. Unix has always* been case-sensitive.


    *AFAIK
    http://xkcd.com/293/
    There are 10 kinds of people in this world: Those who understand ternary, those who don't, and those who confuse it with binary.

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
  •