ifconfig command not found - Ubuntu
How to Install ifconfig Command on Ubuntu
If you are a Ubuntu user and trying to use the ifconfig
command, you might have encountered a message saying “command not found.” This is because the ifconfig
command is no longer included by default in recent Ubuntu versions. In this tutorial, we will guide you on how to install and use the ifconfig
command on Ubuntu.
Prerequisites
Make sure you have sudo privileges on your Ubuntu system.
Installation Steps
-
Open a terminal on your Ubuntu system.
-
Run the following command to install the
net-tools
package, which includes theifconfig
command:
sudo apt update
sudo apt install net-tools
- Once the installation is complete, you can use the
ifconfig
command as usual.
Compatibility Note
Starting from Ubuntu 18.04, the ifconfig
command has been deprecated in favor of the ip
command, which provides more advanced networking functionalities. It is recommended to use the ip
command for network configuration tasks on Ubuntu systems.
Conclusion
In this tutorial, you learned how to install the ifconfig
command on Ubuntu and also about the deprecation of ifconfig
in newer Ubuntu versions. Remember to transition to using the ip
command for networking tasks to take advantage of the modern networking capabilities provided by Ubuntu.