[klug] Re: [Ilugc] Difference between bashrc and bash_profile
- From: binand@xxxxxxxxx (Binand Sethumadhavan)
- Date: Thu Mar 3 09:46:26 2005
On Thu, 3 Mar 2005 09:40:54 +0530, Antony Paul <antonypaul24@xxxxxxxxx> wrote:
so what is /etc/profile for ? I a distro (RHL or MDK) I edited
/etc/profile to set environment variables but these variables were not
present when I logged in as root all other users get the env
variables.
From bash's manpage:
When bash is invoked as an interactive login shell, or as a non-inter-
active shell with the --login option, it first reads and executes com-
mands from the file /etc/profile, if that file exists.
I'd recommend anyone with doubts on the order bash processes its
various startup files to read the bash manpage (specifically, the
section called INVOCATION).
Binand
Other related posts: