9 replies
by jandiar
To maintain common environment settings for all users, put them in /etc/environment or /etc/profile.
The first one is dedicated to set common environment variables, while the latter can contains more generic tasks such as check new mails.
by cavedweller
To modify a specific user's environment you can edit their .login, .cshrc and/or .profile. These files are located in their home (login) directory. Csh uses .cshrc, sh uses .profile.
It is usually a good idea to test new settings by entering the commands interactively but your observation is correct, they go away when you log out.
by oliviu
You get good answers.
One small observation (I hope you know this).
When adding a new directory to the PATH don't forget to add the $PATH variable like:
$ PATH=$PATH:/usr/local/bin ; export PATH
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending