Fedora 8终端里面ifconfig命令不能执行的解决

字体大小: 中小 标准 ->行高大小: 标准

Fedora 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

保存,重新启动

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/55335.html