Last login: Sun Dec  1 13:48:51 2013 from 192.168.2.102

-bash-4.1#    

看到此提示意思就是丢失了两个系统环境文件丢失   /root/.bash_profile   /root/.bashrc        

解决办法:重新建立这两个丢失文件

# vi /root .bash_profile

*** /root: directory ***

::::::::::::::
.bash_profile
::::::::::::::
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
       . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME


# vi /root .bashrc

*** /root: directory ***

::::::::::::::
.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

修改结束后直接执行exit退出重新登录即可

-bash-4.1# exit
logout

[root@localhost ~]#

登录后的效果就ok了。