[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

login shell VS interactive shell



Hello all,

I read a text about bash that mentions a difference between "login
shell" and "interactive shell".

I'm affraid I don not know the difference. Can anyone enlighten me ?


text I read was:

"When Bash starts executes the commands in a variety of different
scripts. When started as an interactive login shell: Bash reads and
executes the /etc/profile (if it exists). After reading that file, it
looks for ~/.bash_profile, ~/.bash_login, and ~/.profile in that order,
and reads and executes the first one (that exists and is readable). When
a login shell exits: Bash reads and executes ~/.bash_logout (if it
exists). When started as an interactive shell (but not a login shell):
Bash reads and executes ~/.bashrc (if it exists)."

thank you
João



Reply to: