vnstat

A console-based network traffic monitor. More information: <https://manned.org/vnstat>.

Install

All systems
curl cmd.cat/vnstat.sh
Debian Debian
apt-get install vnstat
Ubuntu
apt-get install vnstat
Alpine
apk add vnstat
Arch Arch Linux
pacman -S vnstat
image/svg+xml Kali Linux
apt-get install vnstat
Fedora
dnf install vnstat
Windows (WSL2)
sudo apt-get update sudo apt-get install vnstat
OS X
brew install vnstat
Raspbian
apt-get install vnstat
Docker
docker run cmd.cat/vnstat vnstat powered by Commando

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:
    vnstat -i eth0
  • Display live stats for a specific network interface:
    vnstat -l -i eth0
  • Show traffic statistics on an hourly basis for the last 24 hours using a bar graph:
    vnstat -hg
  • Measure and show average traffic for 30 seconds:
    vnstat -tr 30

© tl;dr; authors and contributors