How to install missing ifconfig command on Debian Linux -

The ifconfig command has been deprecated and thus missing by default on Debian Linux, starting from Debian stretch.

# ifconfig
-bash: ifconfig: command not found

This is a companion discussion topic for the original entry at

Mizael Clistion

type on terminal:

# sudo updatedb
#sudo locate ifconfig
# sudo /sbin/ifconfig


nigra truo -> Mizael Clistion

What you don’t seem to know: the ifconfig command is no longer installed in modern Linuxes, it is depreciated, ip is replacing it.

Some Guy -> Mizael Clistion

# prompt means root shell. If you are at a root shell then you don’t need to use sudo. For a normal-user shell the prompt is $ not #. Furthermore, Debian includes /sbin in the path when you use sudo, so if you are using sudo then “sudo ifconfig” will work just fine without needing the full path.

Emanuel Alho -> Mizael Clistion

You can create the alias of ifconfig like:
leafpad .bashrc
alias ifconfig=’/sbin/ifconfig’
Save, exit, close console & reopen.
Then type ifconfig as normal user as u wish :slight_smile:

For resolve :
Open a new terminal :

sudo apt-get install mlocate
sudo updatedb
sudo locate ifconfig

The anwser is /usr/src/linux-headers-x.xx.x-xx/tools/hv/

In your other terminal when you want to install vmware tool with sudo ./ -d and when he ask “setup is unable to find the “ifconfig” program etc” write yes and write this :


And they finish alone to install vmware tools.

Edit : For me, it’s was : /usr/src/linux-headers-4.10.0-19/tools/hv/

by : Meow Meow