Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

share|improve this answer

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.