Man page of LASTCOMM
Section: User Commands (1)
Updated: 1995 October 31
Return to Main Contents
lastcomm - print out information about previously executed commands.
prints out information about previously executed
commands. If no arguments are specified,
will print info
about all of the commands in
(the record file). If called with one or more of
only records containing those items will be displayed. For
example, to find out which users used command `a.out'
and which users were logged into `tty0', type:
lastcomm a.out tty0
This will print any entry for which `a.out' or `tty0'
matches in any of the record's fields (command, name, or terminal). If
you want to find only items that match *all* of the arguments on the command
line, you must use the '-strict-match' option. For example, to list
all of the executions of command
a.out by user root on terminal tty0,
lastcomm --strict-match a.out root tty0
The order of the arguments is not important.
For each entry the following information is printed:
+ command name of the process
+ flags, as recorded by the system accounting routines:
S -- command executed by super-user
F -- command executed after a fork but without a following exec
C -- command run in PDP-11 compatibility mode (VAX only)
D -- command terminated with the generation of a core file
X -- command was terminated with the signal SIGTERM
+ the name of the user who ran the process
+ time the process exited
. .PD 0
Print only entries that match *all* of the arguments on the command
- --user name
List records for user with
This is useful if you're trying
to match a username that happens to be the same as a command (e.g.,
- --command name
List records for command
- --tty name
List records for tty
Read file forwards instead of backwards. This avoids trying to seek on the file
and can be used to read from a pipe. This must be specified prior to any
- -f filename, --file filename
Read from the file
A filename of "-" will result in reading from stdin. This must either be the
must precede all
- --ahz hz
Use this flag to tell the program what
should be (in hertz). This option is useful if you are trying to view
file created on another machine which has the same byte order and file
format as your current machine, but has a different value for
- -p, --show-paging
Print paging statistics
Print verbose internal information.
- -V, --version
Print the version number of
- -h, --help
Prints the usage string and default locations of system files to
standard output and exits.
The system wide process accounting file. See
for further details.
The GNU accounting utilities were written by Noel Cragg
<firstname.lastname@example.org>. The man page was adapted from the accounting
texinfo page by Susan Kleinmann <email@example.com>.
- SEE ALSO
This document was created by
using the manual pages.
Time: 03:41:11 GMT, September 24, 2010