


You can confirm this by checking whether the ifconfig binary exists in said directories or not with the following commands: Due to this, the ifconfig command doesn’t get recognized, which leads to the ifconfig command not found error. Most distros won’t include these directories in the PATH variable unless you’re root. Ifconfig is located in /sbin and /usr/sbin. On Arch-based distros, you can instead use:.On Debian-based distros, you can install net-tools with:.Ifconfig is installed as part of the net-tools package, a collection of networking utilities, some of which you may have heard of or used like arp, netstat, and route. Since ifconfig isn’t present to start with in most cases, we recommend that as a good place to start troubleshooting.
