linux服务器查看tcp链接shell

netstat -nt |awk '{++S[$NF]} END {for (a in S ) print a,S[a]}'

 

posted @ 2017-12-22 15:29  忙碌在路上  阅读(1024)  评论(0编辑  收藏  举报