SAR Commands Cheat Sheet

Here is a cli commands cheat sheet for SAR command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is SAR command?

Add some data here

        # Reports CPU utilization every 2 seconds, 5 times:
sar -u 2 5

# Report the CPU usage for a given core:
sar -P 1 1 3

# Reports the amount of memory used, amount of memory free, available cache, available buffers every 1 second, 3 times: 
sar -r 1 3

# Reports statistics on swapping:
sar -S 1 3

# Reports on the file systems mounted every 2 seconds 5 times:
sar -F 2 5

# Reports on the  block devices every 1 second, 3 times:
sar -d 1 3

# Reports on the network interface, network speed, IPV4, TCPV4, ICMP traffic and errors:
sar -n DEV 1 3 | grep -v lo
    

Check out the SAR command documentation .


You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also

Best AI tools list