统计目前连接本地80端口的所有tcp连接ip地址和连接数
netstat -an|grep 80|grep tcp|awk '{print $5}'|cut -d: -f1|sort -n|uniq –c| grep 10.70 |sort –rn
本文介绍了一种使用命令行工具netstat、grep、awk等来统计当前连接到本地80端口的所有TCP连接的IP地址及其数量的方法。通过一系列的管道操作,实现了对连接信息的筛选和统计。
统计目前连接本地80端口的所有tcp连接ip地址和连接数
netstat -an|grep 80|grep tcp|awk '{print $5}'|cut -d: -f1|sort -n|uniq –c| grep 10.70 |sort –rn
1202

被折叠的 条评论
为什么被折叠?