LinuxCommandLibrary

sa

Summarize system process accounting data

TLDR

Display executable invocations per user

$ sudo sa
copy
Display invocations with usernames
$ sudo sa --print-users
copy
List resources used per user
$ sudo sa --user-summary
copy

SYNOPSIS

sa [options] [file]

DESCRIPTION

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.

PARAMETERS

--print-users

Show responsible usernames
--user-summary
Display per-user resource summary

CAVEATS

Requires process accounting to be enabled (accton). Historical data depends on accounting file rotation.

HISTORY

Part of acct (process accounting) package, providing system-wide command usage statistics.

SEE ALSO

lastcomm(1), accton(8), ac(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community