This tutorial will be helpful for fixing the issue – 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.
How to Enable ifconfig in RHEL / Debian-based systems
For Debian based systems use the below command
For RHEL based systems use the below command