查询某端口的连接数

netstat -pnt |grep 3721| awk '/^tcp/{print $5}' | cut -d: -f 1 | sort -n |uniq -c

原文地址:https://www.cnblogs.com/inteliot/p/2608582.html