linux登录后出现_bash-4.1#终端提示符异常

时间:2023-03-09 06:02:25
linux登录后出现_bash-4.1#终端提示符异常

如果使用root用户登录出现上述提示,则需要需要重建 /root .bash_profile文件:

1. vi /root .bash_profile

2. 输入如下内容

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i' # Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

3. 保存

4. source /root .bash_profile