查看系统支持的shell
[root@yang-centos etc]# cat /etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/dash
/bin/tcsh
/bin/csh
登录用户使用的默认shell
[root@yang-centos etc]# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
shell有内建命令,如cd umask都是shell的内建命令,可以用type命令查看命令类型
[root@yang-centos etc]# type cd
cd is a shell builtin