sar

Monitor performance of various Linux subsystems. More information: <https://manned.org/sar>.

Install

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

Monitor performance of various Linux subsystems. More information: <https://manned.org/sar>.

  • Report I/O and transfer rate issued to physical devices, one per second (press CTRL+C to quit):
    sar -b 1
  • Report a total of 10 network device statistics, one per 2 seconds:
    sar -n DEV 2 10
  • Report CPU utilization, one per 2 seconds:
    sar -u ALL 2
  • Report a total of 20 memory utilization statistics, one per second:
    sar -r ALL 1 20
  • Report the run queue length and load averages, one per second:
    sar -q 1
  • Report paging statistics, one per 5 seconds:
    sar -B 5

© tl;dr; authors and contributors