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
转载于:https://blog.51cto.com/3hack/1335130