(Solved) Debian Stretch: ifconfig command not found
Since Debian Stretch is available, the very famous and widely used “ifconfig” command returns “command not found” when it is entered in the shell. But why?
ifconfig -bash: ifconfig: command not found
The ip address command
This command runs simply via an ” ip address ” in the Linux shell , it can be shortened to ” ip a ” or ” ip addr “. A new habit to take. This command returns a result like this:
Reinstall ifconfig on Debian
In fact, the ifconfig command is included in the ” net-tools ” package which also contains other interesting commands, among which: arp, netstat, nameif or route.
You can install this package with the following command:
sudo apt-get install net-tools
As soon as it’s done, you’ll be able to use ifconfig again! If you want to use the name “ifconfig” without reinstalling this package, then create an alias for the command “ip address” in “ifconfig”.