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