歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Fedora 8終端裡面ifconfig命令不能執行的解決

Fedora 8終端裡面ifconfig命令不能執行的解決

日期:2017/2/28 17:16:07   编辑:Linux教程

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

保存,重新啟動

Copyright © Linux教程網 All Rights Reserved