w -h|tr -s " "|cut -d " " -f3|sort|uniq -c|sort -nr
统计当前连接本机的每个远程主机IP的连接数,并按从大到小排序
原文:https://www.cnblogs.com/qianyuezhan/p/13265044.html