笔记簿
ᴄᴏᴅɪɴɢ ɪs ᴀʀᴛ
首页
关于
搜索
登录
注册
Shell 概述和解释器 - shell概述和解释器
#### Shell概述 Shell是一个命令行解释器,它接收应用程序/用户命令,然后调用操作系统内核。  #### Shell解析器 1. Linux提供的Shell解析器有 ```shell [root@izwz9bikga4wl4jw4cxetuz ~]# cat /etc/shells /bin/sh /bin/bash /sbin/nologin /usr/bin/sh /usr/bin/bash /usr/sbin/nologin ``` 2. bash和sh的关系 ```shell [root@izwz9bikga4wl4jw4cxetuz ~]# ls -l /bin/ |grep bash -rwxr-xr-x 1 root root 960608 Sep 7 2017 bash lrwxrwxrwx 1 root root 10 Oct 31 2017 bashbug -> bashbug-64 -rwxr-xr-x 1 root root 0 Oct 6 16:51 bashbug-64 lrwxrwxrwx 1 root root 4 Oct 31 2017 sh -> bash ``` 3. Centos默认的解析器是bash ```shell [root@izwz9bikga4wl4jw4cxetuz ~]# echo $SHELL /bin/bash ```