LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Where are the environmental variables (eg. $DISPLAY) stored? (https://www.linuxquestions.org/questions/linux-newbie-8/where-are-the-environmental-variables-eg-%24display-stored-167574/)

davidas 04-07-2004 11:03 PM

Where are the environmental variables (eg. $DISPLAY) stored?
 
Eg.

david:/etc# echo $DISPLAY
:0.0
david:/etc# echo $TERM
xterm

In which file can these environmental variables' assignment be found?

Thanks !

AutOPSY 04-07-2004 11:09 PM

type 'env' or 'printenv' .

I think enviornment variables are stored in kernel space memory.
you can also set these.
setenv, $HOME=/blah , $whatever=$?

scott_R 04-08-2004 01:33 AM

In either your .bash_profile or your .bashrc files. You generally have generic files in your /etc/skel directory, and every user has them in thier user directory. They're hidden files, as that's what the '.' in front of the name does, but you can see them with 'ls -A'

cat /home/username/.bash_profile should show some of your path (the $PATH part is based on your startup files in /etc), but there might be additional settings in /home/username/.bashrc


All times are GMT -5. The time now is 10:12 AM.