Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 309 Bytes

lsof.md

File metadata and controls

15 lines (13 loc) · 309 Bytes

show open ports without resolving name

lsof -i -P

drawbacks of lsof

Need privs to see root processes's open ports

Better alternatives:

  1. netstat -nalp
  2. ss -lntp, ss -anp
  3. cat /proc/net/tcp

Windows

netstat -ano  # show process id (last column)
tasklist /v | findstr <pid>