sudo lsof -i:22
sudo lsof -i:8080
sudo netstat -ltnp | grep -w ':80' #port_number: 80 #output: tcp6 0 0 :::80 :::* LISTEN 1907/nginx: master