anthonyvenable110:

this is good info about linux bash

Originally posted on Asif's Blog:

I always had confusion about login vs non-login shell and today decided to clear this up. Here is what I have understood. Please refer to the following site for more explanation.

Reference: http://www.linuxfromscratch.org/blfs/view/cvs/postlfs/profile.html

When a user starts The shell program /bin/bash (hereafter referred to as just “the shell”), shell uses a sequence of startup files to create an environment for the user. This includes PATH, PS1, HOME etc. Each file has a specific use and may affect login and interactive environments differently. 

First Some definitions:

Login Shell:

A login shell is one whose first character of argument zero is a -, or one started with the –login option.     It starts after a successful login using /bin/login and by reading the /etc/passwd file.  

Interactive Shell:

An interactive shell is one started without non-option arguments and without the -c option whose standard input and error are both connected to terminals, or…

View original 177 more words

About these ads

About anthonyvenable110

As you can see I love working with various Linux Operating Systems, as well as programs that are Open-Source in nature. Speaking of nature, I love long walks where there is plenty of it.
This entry was posted in Uncategorized. Bookmark the permalink.

Feel free to comment on any of my blog posts

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