bash: ifconfig: command not found on Kali Linux

Solutions:

1Install ifconfig:

sudo apt install net-tools

2Use ip command instead:

ip a