BSD 3 development
[unix-history] / usr / man / man1 / lastcomm.1
CommitLineData
17c5f919
LE
1.TH LASTCOMM 1 10/27/79
2.UC
3.SH NAME
4lastcomm \- show last commands executed in reverse order
5.SH SYNOPSIS
6.B lastcomm
7[ command name ] ... [user name] ...
8.SH DESCRIPTION
9.PP
10.I Lastcomm
11gives information on previously executed commands.
12.I Lastcomm
13with no arguments prints information about all the commands recorded
14during the current accounting file's lifetime.
15If called with arguments, only those accounting entries whose command
16name or user name matches one of the arguments are printed.
17So, for example,
18.br
19 lastcomm a.out
20.br
21would produce a listing of all the
22executions of commands named a.out, and
23.br
24 lastcomm root
25.br
26would produce a listing of all the commands executed by user root.
27.LP
28
29.PP
30For each process entry, the following are printed.
31.br
32 The name of the user who ran the process.
33.br
34 The command name under which the process was called.
35.br
36 The amount of cpu time used by the process (in seconds).
37.br
38 The time the process exited.
39.br
40.LP
41
42.SH "AUTHOR"
43Len Edmondson
44
45.SH "SEE ALSO"
46last (1)
47.br