Limited-Time Offer | 25% Off Dedicated Servers*Shop Now
Limited-Time Offer | 25% Off Monthly VPS Hosting | Promo Code : LW25Cloud* †††Shop Now
Dedicated Hosting Deals | From $99/moShop Now

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

Posted on by J. Mays
Reading Time: < 1 minute
Pre-Flight Check
  • 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: 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 a part of the package net-tools, and any other required packages:

yum -y install net-tools

Avatar for J. Mays

About the Author: J. Mays

As a previous contributor, JMays shares his insight with our Knowledge Base center. In our Knowledge Base, you'll be able to find how-to articles on Ubuntu, CentOS, Fedora and much more!

Latest Articles

ChatGPT Integration — How to Create a Plugin for ChatGPT

Read Article

What is CentOS? Everything You Need to Know

Read Article

What is CentOS? Everything You Need to Know

Read Article

Redis as Cache: How It Works and Why You Should Use It

Read Article

Refer-a-Friend Program for Website Hosting: Get $100 for Each Friend!

Read Article