added depend label
[unix-history] / usr / src / usr.bin / lastcomm / lastcomm.1
CommitLineData
e6d64aaa
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
aacaffde 5.\" @(#)lastcomm.1 6.2 (Berkeley) %G%
e6d64aaa 6.\"
81146605 7.TH LASTCOMM 1 ""
e6d64aaa
KM
8.UC
9.SH NAME
10lastcomm \- show last commands executed in reverse order
11.SH SYNOPSIS
12.B lastcomm
26df3ca1 13[ command name ] ... [user name] ... [terminal name] ...
e6d64aaa 14.SH DESCRIPTION
e6d64aaa
KM
15.I Lastcomm
16gives information on previously executed commands.
26df3ca1
KM
17With no arguments,
18.I lastcomm
19prints information about all the commands recorded
e6d64aaa 20during the current accounting file's lifetime.
26df3ca1
KM
21If called with arguments, only accounting entries with a
22matching command
23name, user name, or terminal name are printed.
e6d64aaa 24So, for example,
26df3ca1
KM
25.ti +0.5i
26lastcomm a.out root ttyd0
e6d64aaa
KM
27.br
28would produce a listing of all the
26df3ca1
KM
29executions of commands named
30.I a.out
31by user
32.I root
33on the terminal
34.IR ttyd0 .
e6d64aaa
KM
35.PP
36For each process entry, the following are printed.
26df3ca1
KM
37.in +0.5i
38The name of the user who ran the process.
e6d64aaa 39.br
26df3ca1 40Flags, as accumulated by the accounting facilities in the system.
e6d64aaa 41.br
26df3ca1 42The command name under which the process was called.
e6d64aaa 43.br
26df3ca1 44The amount of cpu time used by the process (in seconds).
e6d64aaa 45.br
26df3ca1
KM
46The time the process exited.
47.in -0.5i
48.PP
49The flags are encoded as follows: ``S'' indicates the command was
50executed by the super-user, ``F'' indicates the command ran after
51a fork, but without a following
52.IR exec ,
53``C'' indicates the command was run in PDP-11 compatibility mode
54(VAX only),
55``D'' indicates the command terminated with the generation of a
56.I core
aacaffde 57file, and ``X'' indicates the command was terminated with a signal.
81146605
KM
58.SH FILES
59/usr/adm/acct
e6d64aaa 60.SH "SEE ALSO"
26df3ca1
KM
61last(1),
62sigvec(2),
81146605 63acct(8),
26df3ca1 64core(5)