【轉】linux root用戶ifconfig報command not found

解決辦法:網絡

方法一:ip

直接輸入su - 回車。就能夠ifconfig了io

方法二:配置

/etc/profilefile

      把下面if語句註釋掉:方法

      #path Manipulation配置文件

      if ["EUID"="0"]; then註釋

      pathmunge /sbin文件

      pathmunge /usr/sbinco

      pathmunge /usr/local/sbin

      fi

      修改成:

      #path Manipulation

      #if ["EUID"="0"]; then

      pathmunge /sbin

      pathmunge /usr/sbin

      pathmunge /usr/local/sbin

      #fi

      保存。

在/etc/profile下面就是保存網絡配置的,/etc裏面是全部的系統配置文件。

      固然,直接使用/sbin/ifconfig也能夠進入。

相關文章
相關標籤/搜索