统计tcp链接状态

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

posted @ 2019-05-04 19:21  啦啦啦嘻嘻嘻  阅读(228)  评论(0编辑  收藏  举报