摘要: 1、使用netstat和awk统计服务器出现tcp网络状态并按数量排序? 答: 第1种解法: ss -ant | awk 'NR!=1{print $1}' | sort | uniq -c | sort -nr 第2种解法: ss -ant | awk 'NR!=1{State[$1]++}END 阅读全文
posted @ 2020-07-14 01:18 索玛 阅读(117) 评论(0) 推荐(0)