Created
September 10, 2017 07:58
-
-
Save knadh/1cea393f9613bfe786e92be647419cb0 to your computer and use it in GitHub Desktop.
Group and list all TCP connections (local address) by port and number of connections
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 -ntu | awk ' $4 ~ /^[0-9]/ {print $4}' | sort | uniq -c | sort -n | |
# Rehashed from http://www.commandlinefu.com/commands/view/8767/netstat-with-group-by-ip-adress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment