admin管理员组

文章数量:1605045

该问题是PS1的变量换了

解决办法PS1=“[\u@\h \W]\$”

添加至环境变量vim .bash_profile

# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
PS1="[\u@\h \W]\$"

export PATH

问题解决

本文标签: bash