Linux 7 提示 -bash: ifconfig: command not found

-bash: ifconfig: command not found

说明该包没有安装,不能执行 ifconfig 命令,也可以到目录/sbin下确认下:

ls /sbin/* |grep ‘ifconfig’

可以尝试下 pifconfig,也是可以看相关信息的。

如果就习惯用 ifconfig,则需要通过下面命令安装工具包 net-tools,命令如下:

yum install net-tools

再次查看sbin目录,可以看到已经有ifconfig了,执行命令:

 ifconfig

可以看到错误已解决。 ​

原文链接:https://blog.csdn.net/tzhuwb/article/details/121990689

此条目发表在 Linux 分类目录,贴了 , , , , 标签。将 固定链接 加入收藏夹。

Linux 7 提示 -bash: ifconfig: command not found》有0条回应

  1. 没有找到评论。

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注