LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting Environment Variables (https://www.linuxquestions.org/questions/linux-newbie-8/setting-environment-variables-214575/)

farzan 08-07-2004 04:02 AM

Setting Environment Variables
 
Hello members;
I want to know where are Environment Vars are set at startup? I mean vars like PATH, PS1 etc. I am looking for a file like autoexec.bat in DOS.

Thank you in advance.
Farzan Beh.

Komakino 08-07-2004 04:35 AM

/etc/profile if you're using bash. Maybe even if you're not using bash, I don't know :D

mikshaw 08-07-2004 09:13 AM

There are other places where variables are set as well, depending on your setup. Any startup script could modify your environment, and any script at all could be modifying the environment of its children.
Look for the "export" command within scripts and you'll find these modifications (assuming you use bash)


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