-   Linux - Newbie (
-   -   Where are the environmental variables (eg. $DISPLAY) stored? (

davidas 04-08-2004 12:03 AM

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

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

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

Thanks !

AutOPSY 04-08-2004 12:09 AM

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 02: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 06:34 AM.