Results 1 to 7 of 7

Thread: Terminal Error! "bash: location: No such file or directory"

  1. #1
    Join Date
    Mar 2012
    Beans
    5

    Exclamation Terminal Error! "bash: location: No such file or directory"

    Hey, I'm trying to root into a downloaded folder from my downloads in the terminal but no matter how many times I try, I keep getting the same error. "bash: location: No such file or directory".
    Any Help would be appreciated.
    Last edited by penguinprogrammer; January 6th, 2013 at 02:15 AM.

  2. #2
    Join Date
    Dec 2012
    Location
    In my head.. I think?
    Beans
    113

    Re: Terminal Error! "bash: location: No such file or directory"

    Make sure there is a space between cd and /
    Example

    cd /home/justin/Downloads

    It is also case sensitive.

  3. #3
    Join Date
    Feb 2011
    Location
    /Earth/India/Patna
    Beans
    147
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Terminal Error! "bash: location: No such file or directory"

    Quote Originally Posted by penguinprogrammer View Post
    Hey, I'm trying to root into a downloaded folder from my downloads in the terminal but no matter how many times I try, I keep getting the same error. "bash: location: No such file or directory".
    Any Help would be appreciated.
    Hi penguinprogrammer
    Try locating your folder first
    Code:
    find YOUR_DIRECTORY_NAME -xtype d
    YOUR_DIRECTORY_NAME should be replaced with your directory name.
    Also then cd to the directory using autocompletion feature. (You just need to use tab and list of possible folders in that folder will be displayed). Make sure if there is a folder with space in it, you need to type escape sequence for space
    eg: If you have a folder named untitled folder in your home directory, you need to type in a terminal with a slash in between
    Code:
    untitled\ folder
    Regards
    Abhinav

  4. #4
    iMac71 is offline Gee! These Aren't Roasted!
    Join Date
    Dec 2012
    Beans
    166

    Re: Terminal Error! "bash: location: No such file or directory"

    Quote Originally Posted by Abhinav Kumar View Post
    Make sure if there is a folder with space in it, you need to type escape sequence for space
    eg: If you have a folder named untitled folder in your home directory, you need to type in a terminal with a slash in between
    Code:
    untitled\ folder
    Regards
    Abhinav
    an alternative to use of escape sequences is to enclose the directory name between quotes.

  5. #5
    Join Date
    Mar 2012
    Beans
    5

    Re: Terminal Error! "bash: location: No such file or directory"

    RE: TOMBSTONEV2 Thanks, I tried it and it still gave me the error. I also capitalized the 'd' in downloads, but it didn't work. Is it different for .zip folders?
    Last edited by penguinprogrammer; January 6th, 2013 at 08:55 PM.

  6. #6
    Join Date
    Jan 2010
    Beans
    261
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Terminal Error! "bash: location: No such file or directory"

    You have to extract .zip folders first...

    but to get into downloads it's typically "cd ~/Downloads"

    Once extracted, then if there is a directory in Downloads, you can ~/Doanloads/yournewfolder or such. Note if you are already in downloads too, only "cd /yournewfolder" is necessary.
    When your entire life is measured in one moment, you change the concept of time.

  7. #7
    Join Date
    Mar 2012
    Beans
    5

    Re: Terminal Error! "bash: location: No such file or directory"

    Quote Originally Posted by JiuJitsu500 View Post
    You have to extract .zip folders first...

    but to get into downloads it's typically "cd ~/Downloads"

    Once extracted, then if there is a directory in Downloads, you can ~/Doanloads/yournewfolder or such. Note if you are already in downloads too, only "cd /yournewfolder" is necessary.
    Thanks, JiuJitsu500, it worked!

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
  •