watch netstat

3 秒刷一次。

watch -n 3 "netstat -ntu | awk '{print $6}' | cut -d: -f1 | sort | uniq -c | sort -n"

原文地址:https://www.cnblogs.com/ray30th/p/6991098.html