A page in which to collect useful queries for lsof. primer ![]()
# nothing was listening on port 8080 sudo lsof -i :8080 || echo NOTHING NOTHING
# all the things listening for TCP connections # (skipping name resolution to get faster response) sudo lsof -iTCP -sTCP:LISTEN -P -n