- 可以通过
chsh
修改解释器。 - 查看当前所安装的解释器列表
$ cat /etc/shells
# List of acceptable shells for chpass(1). # Ftpd will not allow users to connect who are not using # one of these shells. /bin/bash /bin/csh /bin/dash /bin/ksh /bin/sh /bin/tcsh /bin/zsh
- 查看当前解释器
$ echo $SHELL
/bin/zsh
- 切换
bash
$ chsh -s /bin/bash
- 切换
zsh
$ chsh -s /bin/zsh