lsof check port code example
Example 1: linux check what process is using port
$ netstat -ltnp | grep -w ':80'
Example 2: find out which procses is using port linux
sudo lsof -i:<port_number>
Example 3: lsof port
$ lsof -i :port
# ex. lsof -i :3000