Skip to content

Instantly share code, notes, and snippets.

@ravibhure
Created September 14, 2016 12:13
Show Gist options
  • Save ravibhure/786e932f5ac0754e498374b023e658a7 to your computer and use it in GitHub Desktop.
Save ravibhure/786e932f5ac0754e498374b023e658a7 to your computer and use it in GitHub Desktop.
print number of sockets in different tcp state
sudo netstat -ant | awk '{print $6}' | tr ')' ' ' | sort | uniq -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment