Files
tldr/pages.zh/linux/nethogs.md

20 lines
385 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# nethogs
> 监控每个进程的带宽使用情况。
> 更多信息:<https://github.com/raboof/nethogs>。
- 以根用户身份启动 NetHogs默认设备为 `eth0`
`sudo nethogs`
- 监控特定设备的带宽:
`sudo nethogs {{device}}`
- 监控多个设备的带宽:
`sudo nethogs {{device1}} {{device2}}`
- 指定刷新频率:
`sudo nethogs -t {{seconds}}`