注册 登录
编程论坛 Linux教室

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

you_me 发布于 2008-05-30 18:57, 1648 次点击
错误提示: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

保存,重新启动
0 回复
1