boost organic

How to fix – bash: ifconfig command not found

Ifconfig command not found


This tutorial will be helpful for fixing the issue – bash: ifconfig command not found


Issue


$ ifconfig


bash: ifconfig: command not found


Nowadays the net-tools packages are deprecated and we need to install them on RHEL / Debian-based systems and we can install them manually if it is required. Alternative ways to check the IP details is by IP address command.


ip a


How to Enable ifconfig in RHEL /  Debian-based systems


For Debian based systems use the below command


sudo apt-get install net-tools -y


For RHEL based systems use the below command


yum install net-tools -y


ifconfig o/p

[fixed][/fixed]