How can I avoid having to reload my environment?

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

Bijan

Posted 2010-12-07T00:27:53.107

Reputation: 111

Can you give a little more information regarding context? – Paused until further notice. – 2010-12-07T02:13:57.710

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' – 2010-12-07T23:35:37.117

@Gilles I believe /etc/environment is the preferred location for system-wide environment variables in Ubuntu. – Ben McCann – 2011-03-28T04:46:33.310

Answers

0

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

asoundmove

Posted 2010-12-07T00:27:53.107

Reputation: 423