netstat -n | awk ‘/^tcp/ {++state[$NF]} END {for(key in state) print key,"\t",state[key]}‘
原文地址:https://www.cnblogs.com/yeyu1314/p/10082188.html
时间: 2024-11-05 18:50:32
netstat -n | awk ‘/^tcp/ {++state[$NF]} END {for(key in state) print key,"\t",state[key]}‘
原文地址:https://www.cnblogs.com/yeyu1314/p/10082188.html