分类: linux server

netstat统计tcp状态

netstat -ant | awk '/^tcp/{++State[$NF]} END {for (key in State) print key,State[key]}'
Share