On Sat, 1 Mar 2003, exits funnel wrote:
> Hello,
>
> I'm trying to determine where exactly $PATH is set.
> I've read the bash man page which was informative but
> doesn't quite answer my question. When I add an 'echo
> $PATH' to the beginning of /etc/profile and than start
> a login shell I can see that PATH is already non null.
> So where is it set? Generally, I guess I'm looking
> for a detailed explanation of the linux startup
> sequence. If anyone could provide a link to a
> reference that would be great!
>
> -exits
>
If memory serves me right, you start with a path of /bin:/usr/bin on
login, and then things are added. Where depends on what shell you are
using. Places to look are .bash_profile and .bashrc in your home
directory, and then /etc/profile.d/*.sh , /etc/bashrc, and /etc/profile
if you are running a sh shell. (bash)
If you are running a C type shell, then it is .cshrc, and .login in your
home directory, /etc/profile.d/*.csh, /etc/csh.cshrc, /etc/csh.login
I may have missed a file or two, but that should give you a place to
start.
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list