Created
May 3, 2017 10:11
-
-
Save cuiwm/8a9fbe2f6ed6bba375a5a242b0dd50d2 to your computer and use it in GitHub Desktop.
veiw all tcp connection's status
This file contains 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 -n |awk '/^tcp/{++s[$NF]} END {for (i in s) print i, s[i]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment