You will always get this error in linux if you haven’t install netstat command. You have to install net-tools to resolve this error, you have to run below command to install it...
Centos
Ubuntu/Debian
After installing net-tools you can run netstat command without any issue.
Centos
Code:
yum install net-tools
Code:
sudo apt install net-tools