LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   echo $PATH? (https://www.linuxquestions.org/questions/linux-newbie-8/echo-%24path-277147/)

blackzone 01-12-2005 10:15 PM

echo $PATH?
 
"echo $PATH" shows:
Code:

/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
but where in the startup script is the $PATH setup?

sphynx 01-12-2005 10:21 PM

what distro are you using?

for redhat 9 you can see the PATH=$PATH: in your .bash_profie file. This is run whenever a user logs in. In debian based KNOPPIX i can see my PATH variable setup initiallyin /etc/profile. RH may have it in /etc/profile or /etc/.profile. This path is then added to in .bash_profile for individual users.


files that begin with a . are hidden and can be seen with

ls -a
or i prefer
ls -al

IBall 01-12-2005 10:58 PM

Bash Settings for all users are done in /etc/profile. Settings for the individial user is done in ~/.bash_profile.

The initial PATH will be set up in /etc/profile. If you wish to modify your path, make the changes in ~/.bash_profile.


On a side note, please add what distro you are using to your profile, as it makes it easier for people to help you.

I hope this helps
--Ian


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