-
-
Save sparkida/d679b2b2d12524e6a2d11fdf4726db2b to your computer and use it in GitHub Desktop.
netstat socket 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
#!/usr/bin/env bash | |
netstat -nat | awk '{print $6}' | sort | uniq -c | sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1607 FIN_WAIT2
3462 SYN_SENT
11842 ESTABLISHED