Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

sar

System activity reporter

Syntax

sar [OPTION]... [DELAY [COUNT]]

Common Options

-uShow CPU utilization
-rShow memory utilization
-bShow I/O activity
-nShow network stats
-dShow disk activity
-qShow queue length
-wShow context switches
-AShow all statistics

Common Examples

sar -u 2 5

CPU usage every 2s, 5 times

sar -r

Show memory stats

sar -n DEV 1

Network stats every 1s

sar -b

Show I/O stats

sar -A

Show all activities

sar -d 2 3

Disk activity every 2s, 3 times

Related Commands

Related Tools

More Code & Dev Tools