Find the process listening on a port

Using netstat

PORT=80; sudo netstat -ltnp | grep ":${PORT}"

Using lsof

PORT=80; sudo lsof -i :${PORT}

Comments

Popular posts from this blog

SSH Private Keys - RSA vs. OpenSSH

Google Wifi and Verizon FiOS