Error: /usr/sbin/ifconfig: No such file or directory [SOLVED]

There are several commonly used, but deprecated, Linux networking commands, including: arp, ifconfig, iptunnel, iwconfig, nameif, netstat, and route. Here, we deal with what to do if you run across the error specific to ifconfig:/usr/sbin/ifconfig: No such file or directory.

Option #1: Use the Command ‘ip’

ip a


or

ip addr


Both display details on all network interfaces, just as ifconfig would.


Option #2: Install net-tools


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

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to Install and Connect to PostgreSQL on CentOS 7

Step 1: Add the PostgreSQL 9.3 Repository In this case we want to install PostgreSQL 9.3...

How to Install MongoDB on Ubuntu 14.04 LTS

MongoDB is a NoSQL database intended for storing large amounts of data in document-oriented...

How to use df

The df command is used to view the amount of free diskspace on a server.  The most common usage...

How to Check POP3 Email with Gmail

Step 1: Go to Account Settings Click on the ‘settings’ button.    ...

How to Install MySQL on Ubuntu 14.04 LTS

Step 1: Install MySQL First, you’ll follow a simple best practice: ensuring the list of...

Powered by WHMCompleteSolution