cheat-fork-echo/cheatsheets/lsof

6 lines
106 B
Plaintext

# To find listening ports:
lsof -Pnl +M -i4
# To find which program is using the port 80:
lsof -i TCP:80