First, the shell classification
1. Classification by Shell type
Kde
GUI Gnome
Xfce
Shell
Sh
CLI CSH
Tcsh
Ksh
Bash
Zsh
2, from the user's point of view of the shell type
A. Log-in Shell
A. Normal usually a terminal login
B. su-username
C. su-l Usernamne
How to read the configuration file:
/etc/profile----->/etc/profile.d/*.sh--->~/.bash_profile--->~/.bashrc---->/ETC/BASHRC
B. Non-logon shell
A. Su USERNAME
B. Open Chitian window under graphics terminal
C. Automatically executed shell scripts
How to read a configuration file
~/.BASHRC---->/ETC/BASHRC----->/etc/profile.d/*.sh
Two,bash configuration file
A. Global configuration
Configured with the/etc/skel file, just as the user global configuration was created
/etc/profile
/etc/profile.d/*.sh
/etc/bashrc
B. Personal configuration
~/.bash_profile
~/.bashrc
Note:
File for Profile class:
Setting environment variables
Run a command or script
Files of the BASHRC class:
Setting Local Variables
Defining command aliases
This article is from the "A-filled blog" blog, please be sure to keep this source http://laizetian.blog.51cto.com/10728827/1698755
Classification of shells in Linux and bash configuration profiles