- 查看已安装 shell
输入cat /etc/shells
$ 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
- 查看默认启动的 shell
输入echo $SHELL
$ echo $SHELL
/bin/zsh
- 修改系统默认 shell 为 bash
输入chsh -s /bin/bash
chsh -s /bin/bash
其他问题
查看系统用户默认使用的shell,shell配置文件在哪里?
网友评论