找不到 ifconfig 命令 [英] ifconfig command not found
问题描述
我刚刚在我的 mac (osx10.9.3 + virtualbox) 上安装了 CentOS7 作为虚拟机运行 ifconfig 返回找不到命令.同时运行 sudo/sbin/config 会返回找不到命令.这是 echo $PATH
I've just installed CentOS7 as a virtual machine on my mac (osx10.9.3 + virtualbox) Running ifconfig returns command not found. Also running sudo /sbin/config returns commmand not found. This is echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/robbert/.local/bin:/home/robbert/bin
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/robbert/.local/bin:/home/robbert/bin
我的路径正常吗?如果没有,我该如何更改?
Is my path normal? If not, how can I change it?
另外,我的虚拟机上还没有互联网连接,也许这是一个因素.
Also, I don't have an internet connection on virtual machine yet, maybe that's a factor.
请记住,我是一名学生,对某些术语非常陌生.
Please bear in mind i'm a student and very new to certain terminology.
推荐答案
ifconfig
存在于net-tools
包中,可能默认不安装;
ifconfig
exists in the net-tools
package which may not be installed by default;
sudo yum install net-tools
安装包后,会以/sbin/ifconfig
的形式存在.
When the package is installed, it will exist as /sbin/ifconfig
.
这篇关于找不到 ifconfig 命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!