[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: su
Cheedu forced the electrons to say:
> when i log on directly or using `su -' the .bash_profile in my
> home directory gets executed . But when i just `su' into my login then
> nothing happens . Is there any file that bash looks for when i su into my
> login ?
When you login, or when you su - (or su -l) bash is invoked as a login shell.
Then it reads .bash_profile (or if that is not found, .profile). When you just
do su, bash is invoked as an interactive shell (not a login shell) and it
reads .bashrc.
This should have been on LIH. Followups there.
Binand
--
The prompt for all occasions:
export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> "
--------------- Binand Raj S. (binand@xxxxxxxxxxxxxxxxxxxxx)
- Prev by Subject:
su
- Next by Subject:
Re: su
- Previous by thread:
su
- Next by thread:
Re: su
- Index(es):