Error: /usr/sbin/ifconfig: No such file or directory [SOLVED]
Reading Time: < 1 minute
These instructions are intended specifically for solving the error: /usr/sbin/ifconfig: No such file or directory
I’ll be working from a Liquid Web Self Managed CentOS 7 server, and I’ll be logged in as root.
There are several commonly used, but deprecated, Linux networking commands, including:
ip a
or
ip addr
Both display details on all network interfaces, just as ifconfig would.
As a matter of best practice we’ll update our packages:
yum -y update
Then let’s install ifconfig, which is apart of the package net-tools, and any other required packages:
yum -y install net-tools