The accounting commands function several different ways.
- Collect data or produce reports for a specific type of accounting: connect-time, process, disk usage, printer usage, or command usage.
- Call other commands. For example, the runacct command, which is usually run automatically by the cron daemon, calls many of the commands that collect and process accounting data and prepare reports. To obtain automatic accounting, you must first configure the cron daemon to run the runacct command. See the crontab command for more information about how to configure the cron daemon to submit commands at regularly scheduled intervals. For information about these commands, see runacct, cron daemon, and crontab.
- Perform maintenance functions and ensure the integrity of active data files.
- Enable members of the adm group to perform occasional tasks, such as displaying specific records, by entering a command at the keyboard.
- Enable a user to display specific information. There is only one user command, the acctcom command, which displays process accounting summaries.