Super User is a question and answer site for computer enthusiasts and power users. 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

I have a path that starts like this

PATH=/opt/subversion:/usr/bin:/bin:/usr/sbin:/sbin [etc]

and this is wrong (at least opt/subversion needs to be opt/subversion/bin). Where is this being set? I checked the usual suspects that I know:

.login
.profile
.bash
.bashrc

and it doesn't seem to be in any of these. Where do I need to look?

share|improve this question
up vote 9 down vote accepted

Stuff like this can be set on a per-user basis in which case you should be able to find something in your .bashrc, .bash_profile or .profile files. Or it can be set on a global level. In that case, I'd take a look inside /etc/environment, /etc/profile and /etc/bash.bashrc.

share|improve this answer
    
Thanks. That sounds like something I would've looked for and changed. And in fact there it is :) export PATH=/opt/subversion:$PATH right in /etc/profile. – Dan Rosenstark Nov 20 '09 at 14:33

You must log in to answer this question.

protected by nhinkle Jun 28 '11 at 5:27

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .