| 用途 | 按连接/进程查看网络流量 |
|---|---|
| 语法 | nethogs [接口] / iptraf-ng |
| 所属 | nethogs / iptraf-ng |
常用示例
常用示例
nethogs eth0
nethogs -t -d 2 # trace 模式(适合管道)
ss -tnp | awk '{print $5, $6}' | headnethogs 把流量算到进程:备份/同步类任务突然吃带宽时非常直观。
无 GUI 环境统计按连接/端口的流量:iptraf-ng 或 nethogs(按进程);定位「谁把带宽吃空」的补充视角。
| 用途 | 按连接/进程查看网络流量 |
|---|---|
| 语法 | nethogs [接口] / iptraf-ng |
| 所属 | nethogs / iptraf-ng |
nethogs eth0
nethogs -t -d 2 # trace 模式(适合管道)
ss -tnp | awk '{print $5, $6}' | head