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

link|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
feedback

1 Answer

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.