snippetbashTip
vnstat — A console-based network traffic monitor. More information: <https://manned.org/vnstat>.
Viewed 0 times
commandvnstatmonitortrafficnetworkcliconsolebased
linux
Problem
How to use the
vnstat command: A console-based network traffic monitor. More information: <https://manned.org/vnstat>.Solution
vnstat — A console-based network traffic monitor. More information: <https://manned.org/vnstat>.Display traffic summary for all interfaces:
vnstatDisplay 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}}Code Snippets
Display traffic summary for all interfaces
vnstatDisplay 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}}Context
tldr-pages: linux/vnstat
Revisions (0)
No revisions yet.