LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   PATH variable file (https://www.linuxquestions.org/questions/linux-general-1/path-variable-file-96637/)

pongsu 09-25-2003 03:24 AM

PATH variable file
 
hi


can someone tell me about the file in the home directory that contains the PATH variable, what does it do, and how do we inspect its value

whansard 09-25-2003 03:44 AM

it can be in any file that is executed on startup of the shell
.bashrc
.bash_login
.bash_profile
/etc/profile

type set|more
hit enter
view away.

yapp 09-25-2003 04:13 AM

echo $PATH

For global settings, you might want to check out /etc/profile.d/.

Adding new folders to your path is done with:
export PATH="$PATH:/some/other/path"


All times are GMT -5. The time now is 02:11 PM.