Skip to content

Instantly share code, notes, and snippets.

@zavakid
Created January 29, 2012 04:17
Show Gist options
  • Save zavakid/1697162 to your computer and use it in GitHub Desktop.
Save zavakid/1697162 to your computer and use it in GitHub Desktop.
查看网络连接状态数
netstat -apnl | awk '/^tcp/ {++state[$NF]} END {for(key in state) print key,"\t",state[key]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment