shell-1
echo $shell
chsh username //改变用户的shell
tail /etc/passwd
head /etc/passwd
Shell 变量的分类:
环境变量:
1.set命令查看所有的环境变量
2.常用的环境变量:
set | grep USER
set | grep UID
pwd 输出目录名称
echo $PWD
echo $SHELL
echo $PATH //用户对应的环境变量所可以执行的相应东东
echo $PS1
echo $PS2
ls -l \
$PS2=":"
which 命令
which bash 查找命令在哪个目录下
USER UID SHELL HOME PWD PATH PS1 PS2