端口连接情况分析 netstat -n | grep ":80" | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' 根据ip归类 netstat -n | grep ":80 " | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
端口连接情况分析 netstat -n | grep ":80" | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' 根据ip归类 netstat -n | grep ":80 " | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n