- 查看當(dāng)前shell
echo $SHELL
- 查看有哪些shell
cat /etc/shells
- 切換shell
chsh -s /bin/bash
- 給用戶設(shè)置默認(rèn)shell
usermod -s /bin/bash username
上面命令是為username用戶切換為/bin/bash的shell環(huán)境 。
echo $SHELL
cat /etc/shells
chsh -s /bin/bash
usermod -s /bin/bash username
上面命令是為username用戶切換為/bin/bash的shell環(huán)境 。