# Shell解析器
(1)Linux提供的Shell解析器有:
[root@hadoop01 ~]# sudo cat /etc/shells
/bin/sh #常用
/bin/bash #常用
/usr/bin/sh
/usr/bin/bash
1
2
3
4
5
2
3
4
5
(2)bash和sh的关系
[root@hadoop01 bin]# ll | grep bash
-rwxr-xr-x. 1 root root 964536 4月 1 2020 bash
lrwxrwxrwx. 1 root root 10 1月 7 18:55 bashbug -> bashbug-64
-rwxr-xr-x. 1 root root 6964 4月 1 2020 bashbug-64
lrwxrwxrwx. 1 root root 4 1月 7 18:55 sh -> bash #sh软连接的bash
1
2
3
4
5
2
3
4
5
(3)Centos默认的解析器是bash
[root@hadoop01 bin]$ echo $SHELL
/bin/bash
1
2
2