Bash startup files

9/15/2011;

What is the difference between login shell and non-login shell?
Login shell read the user’s specific environment settings.

Non-login only read the basic setting defined by the system for all bash users. Login to other servers, i.e. ssh or telnet, start as non-login shell in the remote server.

login shell startup:

/etc/profile
~/.bash_profile
~/.bashrc
/etc/bashrc

non-login shell startup:

/etc/bashrc
~/.bashrc

About janpenguin

Email: janpenguin [at] riseup [dot] net Every content on the blog is made by Free and Open Source Software in GNU/Linux.
This entry was posted in GNU/Linux. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s