Netstat统计tcp状态 发表于 2014-01-06 分类于 linux server Disqus: [bash]netstat -ant | awk ‘/^tcp/{++State[$NF]} END {for (key in State) print key,State[key]}’[/bash]