2025-03-14 21:59:59 -06:00
|
|
|
# nethogs
|
|
|
|
|
|
|
|
|
|
> Monitor bandwidth usage per process.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://manned.org/nethogs>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Start NetHogs as root (default device is `eth0`):
|
|
|
|
|
|
|
|
|
|
`sudo nethogs`
|
|
|
|
|
|
|
|
|
|
- Monitor bandwidth on specific device:
|
|
|
|
|
|
|
|
|
|
`sudo nethogs {{device}}`
|
|
|
|
|
|
|
|
|
|
- Monitor bandwidth on multiple devices:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`sudo nethogs {{device1 device2 ...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-08-06 22:19:46 -06:00
|
|
|
- Specify refresh interval in seconds:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-08-06 22:19:46 -06:00
|
|
|
`sudo nethogs -d {{seconds}}`
|
|
|
|
|
|
|
|
|
|
- Change the traffic display unit (default: 0, 0 = kB/s, 1 = total kB, 2 = total bytes, 3 = total MB, 4 = MB/s, 5 = GB/s):
|
|
|
|
|
|
|
|
|
|
`sudo nethogs -v {{0|1|2|3|4|5}}`
|