.TH LASTCOMM 1 .UC .SH NAME lastcomm \- show last commands executed in reverse order .SH SYNOPSIS .B lastcomm [ command name ] ... [user name] ... .SH DESCRIPTION .PP .I Lastcomm gives information on previously executed commands. .I Lastcomm with no arguments prints information about all the commands recorded during the current accounting file's lifetime. If called with arguments, only those accounting entries whose command name or user name matches one of the arguments are printed. So, for example, .br lastcomm a.out .br would produce a listing of all the executions of commands named a.out, and .br lastcomm root .br would produce a listing of all the commands executed by user root. .LP .PP For each process entry, the following are printed. .br The name of the user who ran the process. .br The command name under which the process was called. .br The amount of cpu time used by the process (in seconds). .br The time the process exited. .SH AUTHOR Len Edmondson .SH FILES .ta 2i /etc/passwd to find user names .br /usr/adm/acct raw accounting data .SH "SEE ALSO" last(1) .SH BUGS Should look up the line clock frequency in the kernel instead of assuming 60HZ.