05 Dec 2014
出现这种现象的原因是root目录下 .bash_profile .bashrc
两个环境文件丢失。
重新建立这两个文件 “` bash vi /root/.bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/bin
export PATH unset USERNAME
vi /root .bashrc
alias rm=‘rm -i’ alias cp=‘cp -i’ alias mv=‘mv -i’
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi