[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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
  • 2022-02-15
  • 2021-06-08
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-02-09
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
相关资源
相似解决方案