LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PATH editing... (https://www.linuxquestions.org/questions/linux-newbie-8/path-editing-12506/)

Jester888 01-23-2002 02:36 PM

PATH editing...
 
What configuration file is the inital PATH statement located? I know that .bashrc has a PATH statement, but mine only adds, or is that wrong? Is there a general, system wide, PATH statement that is modified by user PATHs? i.e. in DOS. in autoexec.bat you set the PATH= and that is the inital. and you can add to it by %PATH=. Where is the "PATH=" in linux?

:newbie:

neo77777 01-23-2002 07:23 PM

You should take a look at /etc/profile it is a simple shell script wich sets some of the important environment variables

TacKat 01-23-2002 08:13 PM

For a user, there are really four places the PATH might be set. /etc/bashrc, /etc/profile, ~/.bashrc, and ~/.bash_profile. Different distros put the path into those files differently so you'll look through 'em and figure out how your distro does things.


All times are GMT -5. The time now is 01:37 AM.