watch netstat

3 秒刷一次。awk

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

相关文章
相关标签/搜索