show open ports without resolving name lsof -i -P drawbacks of lsof Need privs to see root processes's open ports Better alternatives: netstat -nalp ss -lntp, ss -anp cat /proc/net/tcp Windows netstat -ano # show process id (last column) tasklist /v | findstr <pid>