For setting an environment variable for a particular user do it in one of the following files :-
- ~/.pam_environment
- ~/.profile
For setting a system wide environment variable do it in one of the following files :-
- /etc/environment
- /etc/profile.d/*.sh
I use ~/.profile for user specific variables and /etc/environment for system wide variables. The detailed explanation for this article can be found on Ubuntu Site.
No comments :
Post a Comment