一、问题描述
最近登录 我的系统发现 -bash-3.1#   ,
进一步查看发现 root家目录下没有.bashrc,有.bash_profile,.bash_history,

二、解决步骤
1、检查有问题的机器

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.1 (Tikanga)

2、去正常的机器
去Red Hat Enterprise Linux Server release 5.1上查看 root家目录下的.bashrc,并复制该文件至有问题的机器。

# cat /root/.bashrc 
# .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、无需重启,重新进入
通过xshell重新进入,正常了!