Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been trying to install Android developer tools on Eclipse, and I followed the information in this video: .

Like the video said, I added the following two lines of code to the .bashrc file

export PATH=$(PATH):-/android-sdk/tools/
export PATH=$(PATH):-/android-sdk/platform-tools/

It seems, however, that this did not help me to install the Android files on Eclipse, as I am still having problems with that. What's more, it seems that I can't make any command in the terminal without getting a major error now! Every time I try to make a command in the terminal I get the following message:

The command could not be located because '/usr/bin' is not included in the PATH environment variable.

Is there away to restore .bashrc to its default?

share|improve this question
possible duplicate of How to restore .bashrc – Eliah Kagan Sep 18 '14 at 0:07
up vote 16 down vote accepted

Type the following in your terminal,

/bin/cp /etc/skel/.bashrc ~/

It will replace your corrupt ~/.bashrc with a fresh one. After that you need to source the ~/.bashrc so that the change take place immediately, write in terminal,

source ~/.bashrc

or if that does not work you can close the terminal and open it again.

share|improve this answer
Thank you for the response! For some reason I am still getting the error message – sarahrahrah Jan 12 '14 at 20:04
what is the exact error message? – souravc Jan 13 '14 at 2:08
Command 'cp' is available in '/bin/cp' The command could not be located because '/bin' is not included in the PATH environment variable. cp: command not found – sarahrahrah Jan 13 '14 at 13:23
what is the output of echo $PATH? – souravc Jan 13 '14 at 13:26
Note, this is essentially an overkill solution and will remove any other modification that you have done to the file. – Braiam May 9 '14 at 0:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.