Skip to content

Instantly share code, notes, and snippets.

@zoechi
Created May 31, 2013 15:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoechi/5685947 to your computer and use it in GitHub Desktop.
Save zoechi/5685947 to your computer and use it in GitHub Desktop.
open ports
netstat -lptan
netstat -lptu
netstat -lptun
# -l listen
# -p process name
# -t tcp
# -a established connections
# -n numeric addresses
# -u udp
lsof -i -n -P
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment