Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

By doing an echo when I am logged in as root I can see I have a lot of junk in my PATH (probably from running tests and then forgetting all about it).

What's the best way to clean it up? I am not looking for anything fancy -- is there a .profile file I can edit? If so, which one (there's too many and I am a newbie!).

Any help appreciated!

share|improve this question

Ok deleting the lines from bash_profile did the trick!

share|improve this answer

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.