bash determine process by port code example
Example 1: linux check what process is using port
$ netstat -ltnp | grep -w ':80'
Example 2: bash list process on port
sudo lsof -i:3000
#Just change the port 3000
$ netstat -ltnp | grep -w ':80'
sudo lsof -i:3000
#Just change the port 3000