天天看点

Linux执行ifconfig命令报错“-bash: ifconfig: command not found“

异常

Linux执行ifconfig命令报错“-bash: ifconfig: command not found“

原因

安装系统的时候没有安装ifconfig命令。

解决

使用ls /sbin | grep ifconfig查看/sbin目录下是否有ifconfig命令

Linux执行ifconfig命令报错“-bash: ifconfig: command not found“

然后执行yum install net-tools.x86_64命令安装

Linux执行ifconfig命令报错“-bash: ifconfig: command not found“

安装成功后,再执行ifconfig命令就会成功了

Linux执行ifconfig命令报错“-bash: ifconfig: command not found“

继续阅读