← 返回命令列表

Linux command

sa 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

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