Installation guide

Name of the user who issued the command
Terminal from which the command was started
Number of seconds of CPU time used
Time the process started
The lastcomm command has the following syntax:
/usr/bin/lastcomm
[ command][username][tty]
The following example displays information about the sed commands
executed by root:
# lastcomm sed root
sed S root ttyp0 0.01 secs Fri Jan 21 11:34
sed S root ttyp0 0.01 secs Fri Jan 21 11:34
12.6 Disk Usage Accounting
Disk usage accounting is performed by the dodisk shell script. The
dodisk shell script uses either the diskusg or the acctdusg command to
write information to the intermediate ASCII file /var/adm/dtmp. The
shell script then uses the intermediate file as input to the acctdisk
command to create a binary total accounting database file,
/var/adm/acct/nite/dacct. The dodisk script performs disk
accounting on all or selected file systems specified in the /etc/fstab file
system database file.
You can combine the total accounting information in the
/var/adm/acct/nite/dacct file with other accounting information to
create complete accounting reports. For example:
# /usr/sbin/acct/dodisk
# /usr/sbin/acct/prtacct /var/adm/acct/nite/dacct
12.6.1 The dodisk Shell Script
Use the dodisk shell script to obtain disk usage accounting. You can set up
your cron daemon to run the dodisk script automatically, or you can
invoke the command manually. The dodisk shell script has the following
syntax:
/usr/sbin/acct/dodisk
[o][filesystem...]
/usr/sbin/acct/dodisk [ device special file...]
Using the o option, you can specify the file system variable to perform
disk usage accounting on the mount point of a UFS file system or an
12–30 Administering the System Accounting Services