Linux統計當前網絡鏈接數狀況

netstat -n | awk '/^tcp/ {++state[$NF]} END {for(key in state) print key,"\t",state[key]}'
相關文章
相關標籤/搜索