Forrest logo
tool overview
On this page you find all important commands for the CLI tool sar. If the command you are looking for is missing please ask our AI.

sar

The sar command is a useful command line tool in Unix and Unix-like operating systems. It stands for System Activity Reporter. The primary purpose of sar is to collect, report, and analyze system activity data such as CPU usage, memory usage, disk I/O, network traffic, and more. It allows system administrators to monitor system performance and identify bottlenecks or issues. Sar gathers data at regular intervals and stores it in binary files that can be later analyzed or retrieved. It offers various options and flags to customize the output, including the ability to view historical data or generate reports in different formats. Sar is widely used in troubleshooting, performance tuning, capacity planning, and analyzing system behavior over time. It is a versatile tool that provides valuable insights into system activity and performance.

List of commands for sar:

  • sar:tldr:0446b sar: Report paging statistics, one per 5 seconds.
    $ sar -B ${5}
    try on your machine
    explain this command
  • sar:tldr:1f3d6 sar: Report the run queue length and load averages, one per second.
    $ sar -q ${1}
    try on your machine
    explain this command
  • sar:tldr:31d96 sar: Report CPU utilization, one per 2 seconds.
    $ sar -u ALL ${2}
    try on your machine
    explain this command
  • sar:tldr:413a9 sar: Report a total of 20 memory utilization statistics, one per second.
    $ sar -r ALL ${1} ${20}
    try on your machine
    explain this command
  • sar:tldr:b3738 sar: Report I/O and transfer rate issued to physical devices, one per second (press CTRL+C to quit).
    $ sar -b ${1}
    try on your machine
    explain this command
  • sar:tldr:ecc92 sar: Report a total of 10 network device statistics, one per 2 seconds.
    $ sar -n DEV ${2} ${10}
    try on your machine
    explain this command
tool overview