1

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

  • 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 'SO- stop being evil' 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
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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