![]() You need to enable all CentOS global repositories. If yum cannot find net-tools, maybe the repositories you have enabled might not have the package net-tools. In order to do it, run the command below in the terminal. Similar to Ubuntu/Debian distro, you’ll need to install net-tools to get ifconfig back. ![]() How to fix ifconfig command not found on CentOS Once the installation is done, you’ll be able to use ifconfig normally.The -y switch means apt will automatically accept any prompt that pops up.Type in the following command to install net-tools package (which includes ifconfig) : sudo apt-get install net-tools -y.How to fix ifconfig command not found on Ubuntu/Debian You will also find that ifconfig is missing by default on CentOS 7 and Fedora 18. Starting from Debian Stretch and Ubuntu 18.04 and its derivatives such as Kali Linux, elementaryOS, net-tools along with ifconfig have been replaced with iproute2util package, which uses ip command by default. But for compatibility reasons, it was kept as part of the standard libraries until recently. Since 2009, there have been plans to deprecate net-tools, which if config is a part of, due to the lack of maintenance. What causes ifconfig command not found?īasically the error means that there’s no such command named “ifconfig” found in the system. This article is going to help you understand why the error happens and what you can do to fix it. On newer Linux releases, when you try to call ifconfig from the command line, you may see an error pops up that says ifconfig: command not found or -bash: ifconfig: command not found. The program is a vital part of many operating systems as it is used in system startup scripts. Not only for acquiring information, ifconfig can also be used to modify/configure network interfaces. Usually it is required to sign in as root or use sudo to be able to use ifconfig on a Linux machine. Linux have a similar tool, which is called ifconfig (stands for interfaces config). Windows users are familiar to ipconfig, a command used to acquire network interface configuration information and modify it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |