What file hold the PATH statement
As a newbie I have not been able to figure out in what file the PATH variable is set.
Also, what file should contain custom startup commands? Bill |
Depending on what shell you use (RH 8 uses BASH by default) it will be in your .rc file. E.G. for BASH, you'll set it in your .bashrc file which resides in your home directory.
Here's my path statement from my .bashrc PATH=$PATH:$HOME/bin:/usr/local/bin:/usr/bin:/sbin:/usr/local/sbin:/usr/sbin:/usr/games |
custom startup commands, look for rc.local, maybe in /etc/rc.d
Cool |
I adjust my path in .bash_profile. So what's the difference between .bash_profile and .bashrc?
|
Quote:
:) .bash_profile is used if your shell is a login-shell, .bashrc when it's not. Cheers, Tink |
Re: What file hold the PATH statement
Quote:
They build up the default path, manpath settings and some other variables :) Cheers, Tink |
/root/.bash_profile is for root
/home/userx/profile is for userx Hope that help. |
Thanks for all the input. I'll check them all out.
Bill |
All times are GMT -5. The time now is 05:27 PM. |