2025-03-14 21:59:59 -06:00
|
|
|
# vnstat
|
|
|
|
|
|
|
|
|
|
> A console-based network traffic monitor.
|
|
|
|
|
> More information: <https://manned.org/vnstat>.
|
|
|
|
|
|
|
|
|
|
- Display traffic summary for all interfaces:
|
|
|
|
|
|
|
|
|
|
`vnstat`
|
|
|
|
|
|
|
|
|
|
- Display traffic summary for a specific network interface:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`vnstat {{[-i|--iface]}} {{network_interface}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display live stats for a specific network interface:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`vnstat {{[-l|--live]}} {{[-i|--iface]}} {{network_interface}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Show traffic statistics on an hourly basis for the last 24 hours using a bar graph:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`vnstat {{[-hg|--hoursgraph]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Measure and show average traffic for 30 seconds:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`vnstat {{[-tr|--traffic]}} {{30}}`
|