ACCT(5) - File Formats Manual # ACCT(5) - File Formats Manual
NAME # acct - execution accounting file
SYNOPSIS # #include <sys/acct.h>
DESCRIPTION # The kernel maintains the following acct information structure for all processes. If a process terminates or misbehaves in specific ways, and accounting is enabled, the kernel calls the acct(2) function call to prepare and append the record to the accounting file.
/* * Accounting structures; these use a comp_t type which is a 3 bits base 8 * exponent, 13 bit fraction floating point number.
...
ACCTON(8) - System Manager’s Manual # ACCTON(8) - System Manager’s Manual
NAME # accton - enable/disable system accounting
SYNOPSIS # accton [file]
DESCRIPTION # With an argument naming an existing file, accton causes system accounting information for every process executed to be placed at the end of the file. If no argument is given, accounting is turned off.
To have accton enabled at boot time, use “rcctl enable accounting”, which sets
...
Accton,
Fsck,
Makewhatis,
Calendar,
Locate,
Crontab,
Sa,
Security,
Whatis,
Dump,
Yp,
Cron,
Ac,
Rdist,
Daily DAILY(8) - System Manager’s Manual # DAILY(8) - System Manager’s Manual
NAME # daily, weekly, monthly - periodic system maintenance
DESCRIPTION # The three files /etc/daily, /etc/weekly, and /etc/monthly are shell scripts run on a periodic basis by the clock daemon, cron(8). They take care of some basic administrative tasks. Their output, if any, is mailed to root.
Note: The scripts are all run as part of root’s crontab(5). However, it is strongly suggested that the root mail account be an alias that forwards messages to a real user or set of users.
...
LASTCOMM(1) - General Commands Manual # LASTCOMM(1) - General Commands Manual
NAME # lastcomm - show last commands executed in reverse order
SYNOPSIS # lastcomm [-f file] [command …] [user …] [terminal …]
DESCRIPTION # lastcomm gives information on previously executed commands. With no arguments, lastcomm prints information about all the commands recorded during the current accounting file’s lifetime.
The options are as follows:
-f file
Read from file rather than the default accounting file.
...
SA(8) - System Manager’s Manual # SA(8) - System Manager’s Manual
NAME # sa - print system accounting statistics
SYNOPSIS # sa [-abcDdfijKklmnqrstu] [-v cutoff] [file …]
DESCRIPTION # The sa utility reports on, cleans up, and generally maintains system accounting files. See accton(8) for details on enabling system accounting.
sa is able to condense the information in /var/account/acct into the summary files /var/account/savacct and /var/account/usracct, which contain system statistics according to command name and login ID, respectively.
...