nethogs按发送流量降序排序

在 nethogs 中按发送流量降序排序,使用以下命令:

1
nethogs -s eth0

说明

  • -s:按 SENT(发送)列降序排序
  • eth0:只监控 eth0 接口

运行中快捷键

按键 作用
s 按发送流量排序
r 按接收流量排序
m 切换单位(KB/s ↔ 总量)
q 退出

如果只想看一次快照(非实时刷新),可以加 -c:

1
nethogs -s eth0 -c 1