vnstat
vnstat
The vnstat command in Linux is a network traffic monitor. It can be used to track network traffic usage over time.
For example, the following command will show the network traffic usage for the past 24 hours:
vnstat -i eth0 -l 24
help
vnstat [options]
Network traffic monitor.
Options:
-h, --help Show this help message.
-i, --interface=IFACE Monitor the specified network interface.
-l, --line-graph Show the traffic usage in a line graph.
-t, --time=TIME Show the traffic usage for the specified time period.
-d, --daily Show the daily traffic usage.
-w, --weekly Show the weekly traffic usage.
-m, --monthly Show the monthly traffic usage.
-y, --yearly Show the yearly traffic usage.
-r, --reset Reset the traffic counters.
Examples:
vnstat -i eth0
vnstat -i eth0 -l 24
vnstat -i eth0 -t 1wbreakdown
Last updated