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'm not sure why, but I keep having to type 'source /etc/environment' in order for my path to be updated correctly. I don't want to type this inside of my bashrc, since I don't want it related to that. This is for a server, and I want to make sure that the environment settings stick.

Thank you

share|improve this question
    
Can you give a little more information regarding context? – Dennis Williamson Dec 7 '10 at 2:13
    
What OS is on the server (if Linux, what distribution)? The standard location for environment variables is /etc/profile (system-wide) and ~/.profile (per-user). /etc/environment is an additiona file used on some distributions. – Gilles Dec 7 '10 at 23:35
    
@Gilles I believe /etc/environment is the preferred location for system-wide environment variables in Ubuntu. – Ben McCann Mar 28 '11 at 4:46

Depends what your shell is, but generally I would place this in my .profile

share|improve this answer

You must log in to answer this question.

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