LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   where are the environment variables stored? (https://www.linuxquestions.org/questions/linux-newbie-8/where-are-the-environment-variables-stored-328957/)

ojav 05-31-2005 02:06 PM

where are the environment variables stored?
 
I know how to append $PATH, but I'd like to edit the file where the $PATH is actually stored. That's because I have there something which is not needed any more. I have edited that file before, but now I have forgotten where it is situated! So is there a way to find it? My distro is SoL 16

hussar 05-31-2005 02:23 PM

It could be that you are thinking of /etc/profile, if you mean the system-wide $PATH setting. Other than that, your user account $PATH variable can be set in ~/.profile or ~/.bashrc.

ojav 05-31-2005 02:30 PM

Thanks, that's the file I was lookin' for!

What I really love about this site, is the rapidity, with which questions are answered :)

reddazz 05-31-2005 04:00 PM

Your user account paths could also be in ~/.bash_profile depending on your distro.


All times are GMT -5. The time now is 01:26 PM.