lastcomm(1)lastcomm(1)NAMElastcomm - show last commands executed in reverse order
SYNOPSIS
[commandname] ... [username] ... [terminalname] ...
DESCRIPTION
gives information on previously executed commands. If no arguments are
specified, prints information about all the commands recorded in the
accounting file, during the current accounting file's lifetime. If
called with arguments, only accounting entries with a matching command
name, user name, or terminal name are printed. For example, to produce
a listing of all executions of commands named by user on terminal use:
For each process entry, the following are printed.
· Name of the user who ran the process.
· Flags, as accumulated by the accounting facilities in the
system.
· Command name under which the process was called.
· Amount of cpu time used by the process (in seconds).
· What time the process started.
Flags are encoded as follows:
Command was executed by a user who has appropriate privileges.
Command ran after a fork, but without a following
exec.
Command terminated with the generation of a
file.
Command was terminated with the signal
SIGTERM.
AUTHOR
was developed by the University of California, Berkeley.
FILES
current file for per-process accounting
SEE ALSOlast(1), acct(4), acctsh(1M), core(4).
lastcomm(1)