How to install ifconfig on Ubuntu 20.04 (Focal Fossa)

The
You can download this article in PDF format to support us through the following link.

Download the guide as a PDF

turn off
The

The
The

I found that the Ubuntu 20.04 (Focal Fossa) server version did not pre-install the ifconfig command. Then how to install ifconfig on Ubuntu 20.04 (Focal Fossa)? If you receive a message ifconfig: not found On Ubuntu, this means that the command is not installed. ifconfig is a command line interface tool for network interface configuration.

It is not recommended to use the ifconfig command, ip Now tend to use commands to provide similar functionality. Please refer to the guide on the usage of the ip command:

ip vs ifconfig command cheat sheet

Install ifconfig on Ubuntu 20.04 (Focal Fossa)

to make sure ifconfig This command is available on your Ubuntu 20.04 (Focal Fossa) computer. Run the command:

sudo apt install net-tools

The net-tools package will install ifconfig on Ubuntu 20.04 (Focal Fossa). After installation, you can try to call ifconfig in the terminal.

$ ifconfig 
ens3: flags=4163  mtu 1450
        inet 10.10.1.151  netmask 255.255.255.0  broadcast 10.10.1.255
        inet6 fe80::f816:3eff:fed8:1d14  prefixlen 64  scopeid 0x20
        ether fa:16:3e:d8:1d:14  txqueuelen 1000  (Ethernet)
        RX packets 235355  bytes 512200432 (512.2 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 57226  bytes 5382029 (5.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 1364  bytes 109906 (109.9 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1364  bytes 109906 (109.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

The output confirms that we have fixed ifconfig: not found On Ubuntu 20.04 Linux system.

For usage of ifconfig, please refer to the following guide.

ip vs ifconfig command cheat sheet

Here are more Ubuntu articles:

Install Node.js 14 on Ubuntu / Debian / Linux Mint

Install Chromium Browser on Ubuntu

How to install TeamViewer on Ubuntu

How to install Java 14 on Ubuntu / Debian

The
You can download this article in PDF format to support us through the following link.

Download the guide as a PDF

turn off
The

The
The

Sidebar