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.

Whatever I try to run, I get the error:

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

I had some modification in my .bashrc file but then removed the two additional lines afterwards. However somehow the PATH variable seems to have been destroyed.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

The PATH should restore on Reboot; anyways, if not the case you can find an Original .bashrc on: /etc/skel/.bashrc Overwrite using it; good luck.

share|improve this answer
2  
Here's the base path from a standard user on my system (which has sudo): /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin. If you put into .bashrc: export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, then do source ~/.bashrc, it may restore the functionality you need. All this is in the terminal, of course. NOTE: I have not tested this! –  Thomas W. Jul 11 '11 at 4:09

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.