Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've been trying to install Android developer tools on Eclipse, and I followed the information in this video: http://www.youtube.com/watch?v=-qk9c-Ug2UI&list=PLQOohAn5nxx43fqFugU6dIwSQNbvXdgi5 .

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 at 0:07

1 Answer 1

up vote 6 down vote accepted

Type the following in your terminal,

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
share|improve this answer
    
Thank you for the response! For some reason I am still getting the error message –  user3152126 Jan 12 at 20:04
    
what is the exact error message? –  souravc Jan 13 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 –  user3152126 Jan 13 at 13:23
    
what is the output of echo $PATH? –  souravc Jan 13 at 13:26
1  
Note, this is essentially an overkill solution and will remove any other modification that you have done to the file. –  Braiam May 9 at 0:39

Your Answer

 
discard

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.