How To Install Sar In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

How To Install Sar In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

sar

Monitor performance of various Linux subsystems.

Maintainer: Robert Luberda



Section: admin

Install sar

  • Debian apt-get install sysstat Click to copy
  • Ubuntu apt-get install sysstat Click to copy
  • Alpine OS apk add sysstat Click to copy
  • Arch Linux pacman -S sysstat Click to copy
  • Kali Linux apt-get install sysstat Click to copy
  • CentOS yum install sysstat Click to copy
  • Fedora dnf install sysstat Click to copy
  • Raspbian apt-get install sysstat Click to copy

Monitor performance of various Linux subsystems.

How to use sar?

Below are few example commands for sar that you can use in the terminal.

Report I/O and transfer rate issued to physical devices, one per second (press CTRL+C to quit):
sar -b 1Click to copy
Report a total of 10 network device statistics, one per 2 seconds:
sar -n DEV 2 10Click to copy
Report CPU utilization, one per 2 seconds:
sar -u ALL 2Click to copy
Report a total of 20 memory utilization statistics, one per second:
sar -r ALL 1 20Click to copy
Report the run queue length and load averages, one per second:
sar -q 1Click to copy
Report paging statistics, one per 5 seconds:
sar -B 5Click to copy
Install the latest version of sar in Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora and Raspbian from terminal. To install the sar just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of sar from the respository and install it in your computer/server.