You may face the below error on your Linux OS if you haven’t installed the netstat command installed.
bash: netstat: command not found
You can run the following command to fix this issue.
Centos
yum install net-tools
Ubuntu/Debian
sudo apt install net-tools