Results 1 to 2 of 2

Thread: How to recover from The command could not be located because '/usr/bin' is not includ

  1. #1
    Join Date
    Mar 2011
    Beans
    4

    Angry How to recover from The command could not be located because '/usr/bin' is not includ

    Hi all,

    I added these lines to my `.bashrc` file:

    Code:
    export vertx_home=/anto/vertx/bin
        export PATH=${PATH}:${vertx_home}/bin
    after doing that. I get an error message like that for all command's I run, for example:`clear`,`groovy` :

    Code:
    Command 'clear' is available in '/usr/bin/clear'
        The command could not be located because '/usr/bin' is not included in the PATH environment variable.
        clear: command not found
    How to recover from it? I couldn't able to open anything via terminal

    I did :

    Code:
    echo $PATH
    which prints:

    Code:
    ${PATH}:${VERTX_HOME}
    I'm very new to Ubuntu. I'm using Ubuntu 10.10. Now what I need is to know where that .bashrc file resides as I can go there manually and change it. Kindly help.

    Thanks in advance.

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas
    Beans
    1,477
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: How to recover from The command could not be located because '/usr/bin' is not in

    This is what you were probably wanting to do.

    Code:
    PATH=$PATH:/anto/vertx/bin
    Since your path is all jacked up either use a different user to modify the files or call a text editor directly with the full path to it.
    Last edited by lukeiamyourfather; April 17th, 2012 at 04:34 PM.

Tags for this Thread

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
  •