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 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente?

Articles connexes

How to List Compiled PHP Modules from Command Line

Pre-Flight Check These instructions are intended specifically for listing compiled PHP modules...

How to Install or Uninstall PECL Extensions

Pre-Flight Check These instructions are intended specifically for installing or uninstalling...

How to Install the MongoDB PHP Driver (Extension) on CentOS 6

Step 1: Setup Environment, Install PHP Extension & Application Repository (PEAR) As a matter...

How to Add a User and Grant Root Privileges on CentOS 6.5

Step 1: Add the User It’s just one simple command to add a user. In this case, we’re...

How to Add a User and Grant Root Privileges on Ubuntu 14.04

Step 1: Add the User It’s just one simple command to add a user. In this case, we’re...