vmstat

Report information about processes, memory, paging, block IO, traps, disks and CPU activity. More information: <https://manned.org/vmstat>.

Install

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

Report information about processes, memory, paging, block IO, traps, disks and CPU activity. More information: <https://manned.org/vmstat>.

  • Display virtual memory statistics:
    vmstat
  • Display reports every 2 seconds for 5 times:
    vmstat 2 5

© tl;dr; authors and contributors