Forrest logo
back to the vnstat tool

vnstat:tldr:88285

vnstat: Show traffic statistics on an hourly basis for the last 24 hours using a bar graph.
$ vnstat -hg
try on your machine

The command vnstat -hg is used to display network traffic statistics using the vnStat tool with an hourly breakdown.

Here's a breakdown of the command:

  • vnstat: It is a command-line network traffic monitor tool for Linux. It tracks the network usage of one or multiple network interfaces on your system.
  • -hg: These are command-line options passed to vnstat, which control how the statistics are displayed.
    • The -h option specifies that the statistics should be displayed in a human-readable format.
    • The -g option specifies that the statistics should be displayed in a graphical/hourly format.

When you execute the vnstat -hg command, vnStat will retrieve and display network traffic statistics in an hourly format, allowing you to view the network usage trends hour by hour.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the vnstat tool