lastcomm(1BSD) (BSD System Compatibility) lastcomm(1BSD)
NAME
lastcomm - (BSD) show the last commands executed, in reverse
order
SYNOPSIS
/usr/ucb/lastcomm [command] . . . [user] . . . [terminal] . . .
DESCRIPTION
The lastcomm command gives information on previously executed
commands. lastcomm with no arguments displays information
about all the commands recorded during the current accounting
file's lifetime. If called with arguments, lastcomm only
displays accounting entries with a matching command, user, or
terminal.
EXAMPLE
The command:
lastcomm a.out root term/01
would produce a listing of all the executions of commands
named a.out, by user root while using the terminal term/01,
and
lastcomm root
would produce a listing of all the commands executed by user
root.
For each process entry, lastcomm displays the following items
of information:
the command name under which the process was called
one or more flags indicating special information about
the process. The flags have the following meanings:
F The process performed a fork but not an exec.
S The process ran as a set-user-id program.
the name of the user who ran the process
the terminal which the user was logged in on at the time
(if applicable)
Copyright 1994 Novell, Inc. Page 1
lastcomm(1BSD) (BSD System Compatibility) lastcomm(1BSD)
the amount of CPU time used by the process (in seconds)
the date and time the process exited
FILES
/var/adm/pacct accounting file
NOTICES
lastcomm looks for the file /var/adm/pacct, and will fail if
it does not find it. Accounting must be turned on, by
executing /usr/lib/acct/startup, which creates the pacct file.
REFERENCES
acct(4), acctsh(1M), core(4), last(1), sigvec(3BSD)
Copyright 1994 Novell, Inc. Page 2