Notes to Self

Alex Sokolsky's Notes on Computers and Programming

lsof

man page

List the TCP server sockets in the LISTEN state:

sudo lsof -iTCP -sTCP:LISTEN -P -n