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

保存,重新启动

  • 1
  • 2
  • 下一页

相关内容