$ apt-cache show acct
Package: acct
Version: 6.6.4-2
Installed-Size: 341
Maintainer: Debian Security Tools <[email protected]>
Architecture: amd64
Depends: libc6 (>= 2.14), lsb-base
Description-en: GNU Accounting utilities for process and login accounting
GNU Accounting Utilities is a set of utilities which reports and summarizes
data about user connect times and process execution statistics.
.
"Login accounting" provides summaries of system resource usage based on connect
time, and "process accounting" provides summaries based on the commands
executed on the system.
.
The 'last' command is provided by the sysvinit package and not included here.
一种方法是使用
acct
会计实用程序。从 debian 包描述:
主页:http ://www.gnu.org/software/acct/
该软件包包括一个名为
sa
. 您可能需要编写脚本awk
或perl
其他东西来将sa
的输出后处理成您想要的确切形式。