you_me 发表于 2008-5-30 18:57

[转载]fedroa 8终端里面ifconfig命令不能执行

错误提示:bash: ifconfig: command not found

解决方法
1. # /sbin/ifconfig

[ximi@ximi_fedora ~]$ /sbin/ifconfig

或者
[ximi@ximi_fedora ~]$ su
口令:
[root@ximi_fedora ximi]# /sbin/ifconfig

2. 修改 /etc/profile 文件
[root@ximi_fedora ximi]# gedit /etc/profile

把下面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

保存,重新启动


页: [1]

编程论坛