Linux Command Cheat Sheet/Collect and report system activity

Use sysstat historical metrics.

Section: Performance Monitoring and Troubleshooting

Collect and report system activity

bash
bash
sar -u 1 5
Explanation

Great when sysstat is installed and enabled for ongoing collection.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Performance Monitoring and Troubleshooting
Search shell history
Filter previous shell commands.
OpenIn sheetbash1 tag match
Print working directory
Show the current absolute path.
Create file or update timestamp
Create an empty file if it does not exist.
Print file contents
Concatenate and print files to standard output.
Search text with grep
Print lines matching a pattern.
List permissions
Show permissions and ownership on files.