When you log in to the Linux system, the bash shell starts as a login shell. The login shell looks for four different startup files to process commands from. The order in which the bash shell processes the files are:

/etc/profile
$HOME/.bash profile
$HOME/.bash login
$HOME/.profile

The /etc/profile file is the main default startup file for the bash shell on the system. Every user on the system executes this startup file when they log in. The other three startup files are specific for each user and can be customized for each user’s requirements.

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.