How To Install Sar In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?
Install sar
-
Debian
apt-get install sysstatClick to copy -
Ubuntu
apt-get install sysstatClick to copy -
Alpine OS
apk add sysstatClick to copy -
Arch Linux
pacman -S sysstatClick to copy -
Kali Linux
apt-get install sysstatClick to copy -
CentOS
yum install sysstatClick to copy -
Fedora
dnf install sysstatClick to copy -
Raspbian
apt-get install sysstatClick 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 copyReport a total of 10 network device statistics, one per 2 seconds:sar -n DEV 2 10Click to copyReport CPU utilization, one per 2 seconds:sar -u ALL 2Click to copyReport a total of 20 memory utilization statistics, one per second:sar -r ALL 1 20Click to copyReport the run queue length and load averages, one per second:sar -q 1Click to copyReport 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.




