如果使用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