The shell type, in addition to the graphical shell and the command-line shell, can be classified as a landing shell and a non-login shell from the lander's perspective.
Log-in Shell: three cases
1. A shell that normally logs in through a terminal
2.su-username
3.su-l username
Non-logon Shell:
1.SU username
2. Command-line window open under graphics terminal
3. Automatically executed shell scripts
Many of the features of the bash that we use most often are determined by the configuration file. Bash's configuration file is divided into two types: global configuration, personal configuration
1. Global configuration file
/etc/profile/etc/profile.d/*.sh/etc/bashrc
2. Personal configuration
~/.bash_profile ~/.BASHRC
The role of the file for the profile class (setting environment variables to run commands or scripts)
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/84/21/wKiom1eGKIDA6Q5cAAKK8D3D2aI905.jpg-wh_500x0-wm_3 -wmp_4-s_1242157445.jpg "title=" 1.jpg "alt=" Wkiom1egkida6q5caakk8d3d2ai905.jpg-wh_50 "/>
For files of the BASHRC class (set local variables to define command aliases)
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/84/21/wKiom1eGKW3x5bL4AADI8EjII00071.jpg-wh_500x0-wm_3 -wmp_4-s_1359371015.jpg "title=" 0.jpg "alt=" Wkiom1egkw3x5bl4aadi8ejii00071.jpg-wh_50 "/>
The order in which the configuration files are read for the login shell.
/etc/profile--/etc/profile.d/*.sh--and ~/.bash_profile--~/.BASHRC--/ETC/BASHRC
The order in which the configuration files are read for non-logged shells.
~/.BASHRC--/ETC/BASHRC-/etc/profile.d/*.sh
This article is from the "thick Product Thin Hair" blog, please make sure to keep this source http://joedlut.blog.51cto.com/6570198/1826173
Linux Basics (8) About bash configuration files