netstat -anp | grep -w <PORT> | grep ESTABLISHED | wc -l
-
-
Save brpaz/b1ef3401b348ccb0f9a2 to your computer and use it in GitHub Desktop.
Count number of connections to specific port using NETSTAT #linux #networking
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment