Linux问题集

1.bash: ifconfig: command not found 解决办法

方法一:[root@localhost sbin]$ /sbin/ifconfig 就可以出现使用了

方法二:修改/etc/profile文件,注释掉if语句,然后重启系统即可
把下面的if语句注释掉:
# Path manipulation
if [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
修改为
# Path manipulation
# if [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
#fi

 

posted @ 2013-06-03 00:03  不负韶华668  阅读(154)  评论(0编辑  收藏  举报