一、Linux提供的Shell解析器
[root@hdp101 ~]# cat /etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/dash
/bin/tcsh
/bin/csh
- sh
- bash
- nologin
- dash
- tcsh
- csh
二、bash和sh的关系
[root@hdp101 ~]# ll /bin/ |grep bash
-rwxr-xr-x 1 root root 964536 11月 25 00:33 bash
lrwxrwxrwx 1 root root 10 4月 20 09:03 bashbug -> bashbug-64
-rwxr-xr-x 1 root root 6964 11月 25 00:33 bashbug-64
lrwxrwxrwx 1 root root 4 4月 20 09:03 sh -> bash
其中 sh
软链接到 bash
三、Centos 默认解析器是 bash
[root@hdp101 ~]# echo $SHELL
/bin/bash