xshell链接远程服务器centos7显示-bash-4.2# 解决 vim ~/.bash_profile 加上那一行 export PS1='[u@h W]$' 然后保存退出 source ~/.bash_profile