Linux RHEL Bash Invocation, Startup Procedure

harmandeep

VirTuaLiZaTioN Freak
Disciple
Hi...

I wanna verify what i learnt about Bash Startup Procedure with regards to Initialization files read by it on default standard RHEL Server setup.

Interactive Login Shell or Non Interactive with --login option Sources following :-

1) /etc/profile is read

2) (a) ~/.bash_profile

(b)~/.bash_login

(c)~/.profile

Whichever ( a,b or c) in Step 2 is found first in the highlighted pattern would executed and other files beneath the pattern won't be called/sourced/executed and Step 2 finishes right there.

Interactive Login Shell or Non Interactive Logout Sources :-

1) ~/.bash_logout

For BASH INTERACTIVE NON LOGIN Shells ... it includes Step1,Step2 and also incorporates following STEP3 :-

3) ~/.bashrc

Question 1) Is this correct--- Bash Interactive Login Shell or non interactive with --login option BY ITSELF won't source More than TWO files ( however those TWO files may Source N number of other files) ?

Question 2) For Bash Interactive login Shells ... three files are sourced ?

I had read Info and Man Pages of Bash on a RHEL 5.2 System ...

So Kindly recheck before referencing me with same... because the above written TEXT was sourced by blending info from multiple sources --- namely --- VTC LPIC,LinuxCompleteRefence,TLDP-Bash,AsgharGhori---RHCE

Also please don't mix Startup procedure with what is adhered by Debian/Debian Forks!



Regards
 
Back
Top