commands.sh

vnstat

linux

A console-based network traffic monitor.

More info →

Options (4)

-i, --ifaceboolean

Display traffic summary for a specific network interface

Example: vnstat {{[-i|--iface]}} {{network_interface}}
-l, --liveboolean

Display live stats for a specific network interface

Example: vnstat {{[-l|--live]}} {{[-i|--iface]}} {{network_interface}}
--hoursgraphboolean

Show traffic statistics on an hourly basis for the last 24 hours using a bar graph

Example: vnstat {{[-hg|--hoursgraph]}}
--trafficboolean

Measure and show average traffic for 30 seconds

Example: vnstat {{[-tr|--traffic]}} {{30}}

Examples (5)

Display traffic summary for all interfaces

Display traffic summary for a specific network interface

vnstat [-i|--iface] network_interface

Display live stats for a specific network interface

vnstat [-l|--live] [-i|--iface] network_interface

Show traffic statistics on an hourly basis for the last 24 hours using a bar graph

vnstat [-hg|--hoursgraph]

Measure and show average traffic for 30 seconds

vnstat [-tr|--traffic] 30
made by @shridhargupta | data from tldr-pages