查看當前已安裝的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
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/116702.html
標籤:Linux
上一篇:運行docker大致流程
下一篇:CentOS 鏡像
