/ mozey.co / blog

netstat

April 1, 2015

🔗 List open network ports and the processes that own them

netstat -lnptu

netstat -atp tcp | grep -i "listen"

sudo lsof -i -P | grep -i "listen"

Rather use ss

ss -tlnp