Linux command
sa 命令
安全
May affect permissions or system state. Check the target first.
命令示例
Example
sudo sa
Example
sudo sa --print-users
Example
sudo sa --user-summary
说明
sa summarizes accounting information about commands executed by users. It reports CPU time spent, I/O operations, and other resource usage from process accounting data. Part of the acct package, it requires process accounting to be enabled for data collection.
参数
- --print-users
- Show responsible usernames
- --user-summary
- Display per-user resource summary
FAQ
What is the sa command used for?
sa summarizes accounting information about commands executed by users. It reports CPU time spent, I/O operations, and other resource usage from process accounting data. Part of the acct package, it requires process accounting to be enabled for data collection.
How do I run a basic sa example?
Run `sudo sa` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --print-users do in sa?
Show responsible usernames