系统登录异常
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
總結
- 上一篇: 伟大的塌陷
- 下一篇: java信息管理系统总结_java实现科