The ifconfig command has been deprecated and thus missing by default on Debian Linux, starting from Debian stretch.
-bash: ifconfig: command not found
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-install-missing-ifconfig-command-on-debian-linux
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:
Save, exit, close console & reopen.
Then type ifconfig as normal user as u wish
For resolve :
Open a new terminal :
sudo apt-get install mlocate
sudo locate ifconfig
The anwser is /usr/src/linux-headers-x.xx.x-xx/tools/hv/hv_set_ifconfig.sh
In your other terminal when you want to install vmware tool with sudo ./vmware-install.pl -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/hv_set_ifconfig.sh
by : Meow Meow