查看当前已安装的shell
[root@CentOSv64 my]# cat /etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/dash
/bin/tcsh
/bin/csh
/bin/zsh
查看当前使用的shell
[root@CentOSv64 my]# echo $SHELL
/bin/bash
切换Shell
chsh -s /bin/zsh # 将/bin/bash 切换成 /bin/zsh
配置shell 文件
vim ~/.bash_profile
source ~/.bash_profile
or
. ~/.bash_profile(中间有空格)
➜ ~ vim ./.zshrc
➜ ~ . ./.zshrc