Last active
January 4, 2016 05:39
-
-
Save ellman/8576781 to your computer and use it in GitHub Desktop.
Count number of connections to specific port using NETSTAT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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