LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How can I do some modification to my initialized "env" environment variable? (https://www.linuxquestions.org/questions/linux-general-1/how-can-i-do-some-modification-to-my-initialized-env-environment-variable-38762/)

yuzuohong 12-18-2002 08:40 AM

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

yuzuohong 12-18-2002 08:42 AM

BTW:
 
I use RedHat 6.2 and RedHat 7.2.

acid_kewpie 12-18-2002 08:45 AM

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.

SlickWilly 12-18-2002 03:41 PM

.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.