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

posted on 2014-11-11 19:55  babyblue  阅读(859)  评论(0编辑  收藏  举报