[root@centos6 ~]# cat /etc/shells
/bin/sh # 指向/bin/bash,sh为bash的软连接
/bin/bash # 默认的使用的shell
/sbin/nologin # 用于禁止用户登录
/bin/dash
/bin/tcsh
/bin/csh
bash test.sh # 无需修改权限
sh test.sh # 无需修改权限
./test.sh # 需要修改执行权限chmod +x test.sh
source test.sh # 相当于PHP的include
sh<test.sh
cat test.sh|sh
原文:https://www.cnblogs.com/liangjingfu/p/9419060.html