第2章 Shell解释器

时间:2020-06-07 19:35:23   收藏:0   阅读:51

第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

原文:https://www.cnblogs.com/chengxiangbei/p/13061457.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!