Skip to content

Instantly share code, notes, and snippets.

@brpaz
Forked from ellman/gist:8576781
Last active August 29, 2015 14:08
Show Gist options
  • Save brpaz/b1ef3401b348ccb0f9a2 to your computer and use it in GitHub Desktop.
Save brpaz/b1ef3401b348ccb0f9a2 to your computer and use it in GitHub Desktop.
Count number of connections to specific port using NETSTAT #linux #networking
netstat -anp | grep -w <PORT> | grep ESTABLISHED | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment