使用awk,grep,netstat,sort,uniq列出活动网络连接的数量和类型
Hujiuxiang
・1 分钟阅读
列出活动网络连接的数目和类型
netstat -ant | awk '{print $NF}' | grep -v '[a-z]' | sort | uniq -c