第2章 Shell解释器

时间:2020-06-07 19:12:53   收藏:0   阅读:58

第2章  Shell解释器

(1)Linux提供的Shell解释器有:

[root@localhost ~]# cat /etc/shells
/bin/sh
/bin/bash
/usr/bin/sh
/usr/bin/bash
/bin/tcsh
/bin/csh

(2)bash和sh的关系

[root@localhost ~]# ll /bin/sh
lrwxrwxrwx. 1 root root 4 5月 15 19:42 /bin/sh -> bash

(3)CentOS默认的解释器是bash

[root@localhost ~]# echo $SHELL
/bin/bash

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!