How can I do some modification to my initialized "env" environment variable?
Hi all,
In fact, I just wanna know which config file stores the output information , what I see when I type "env". So that I could make some changes to my original environment. relax |
BTW:
I use RedHat 6.2 and RedHat 7.2.
|
well no file in particular stores it, it's a bunch of settings that get set by different scripts and programs. I think the best place to set a system wide variable is to add it to the end of /etc/bashrc (assuming you're using bash of course) just add
export VARNAME=value and that's all there is to it. but like i said, each variable is set by different scripts. |
.bash_profile is where you'd find your global variables.
Things like PATH, JAVA_HOME and so on.. Slick. |
All times are GMT -5. The time now is 07:42 PM. |