Command 'ifconfig' not found, code example
Example 1: ifconfig command not found
sudo apt-get install net-tools or sudo ifconfig
Example 2: ifconfig not found
sudo yum install net-tools
sudo apt-get install net-tools or sudo ifconfig
sudo yum install net-tools