sar.sysstat command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
sar.sysstat: command not found
or when using sudo you get the following error message
sudo: sar.sysstat: command not found
Solutions to sar.sysstat: command not found
How To Fix sar.sysstat: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu sar.sysstat is provided by sysstat package.
sysstat is:
The sysstat package contains the following system performance tools:
- sar: collects and reports system activity information;
- iostat: reports CPU utilization and disk I/O statistics;
- tapestat: reports statistics for tapes connected to the system;
- mpstat: reports global and per-processor statistics;
- pidstat: reports statistics for Linux tasks (processes);
- sadf: displays data collected by sar in various formats;
- cifsiostat: reports I/O statistics for CIFS filesystems.
The statistics reported by sar deal with I/O transfer rates, paging activity, process-related activities, interrupts, network activity, memory and swap space utilization, CPU utilization, kernel activities and TTY statistics, among others. Both UP and SMP machines are fully supported.
To fix this problem, we can install more using the command below.
sudo apt-get -y install sysstat
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install sysstat.
sudo apt -y install sysstat
Or if you have aptitude installed you can use the following command.
sudo aptitude install sysstat
Summary
In this tutorial we learn how to fix sar.sysstat command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.