Commit | Line | Data |
---|---|---|
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 | |
10 | lastcomm \- 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 |
16 | gives information on previously executed commands. | |
26df3ca1 KM |
17 | With no arguments, |
18 | .I lastcomm | |
19 | prints information about all the commands recorded | |
e6d64aaa | 20 | during the current accounting file's lifetime. |
26df3ca1 KM |
21 | If called with arguments, only accounting entries with a |
22 | matching command | |
23 | name, user name, or terminal name are printed. | |
e6d64aaa | 24 | So, for example, |
26df3ca1 KM |
25 | .ti +0.5i |
26 | lastcomm a.out root ttyd0 | |
e6d64aaa KM |
27 | .br |
28 | would produce a listing of all the | |
26df3ca1 KM |
29 | executions of commands named |
30 | .I a.out | |
31 | by user | |
32 | .I root | |
33 | on the terminal | |
34 | .IR ttyd0 . | |
e6d64aaa KM |
35 | .PP |
36 | For each process entry, the following are printed. | |
26df3ca1 KM |
37 | .in +0.5i |
38 | The name of the user who ran the process. | |
e6d64aaa | 39 | .br |
26df3ca1 | 40 | Flags, as accumulated by the accounting facilities in the system. |
e6d64aaa | 41 | .br |
26df3ca1 | 42 | The command name under which the process was called. |
e6d64aaa | 43 | .br |
26df3ca1 | 44 | The amount of cpu time used by the process (in seconds). |
e6d64aaa | 45 | .br |
26df3ca1 KM |
46 | The time the process exited. |
47 | .in -0.5i | |
48 | .PP | |
49 | The flags are encoded as follows: ``S'' indicates the command was | |
50 | executed by the super-user, ``F'' indicates the command ran after | |
51 | a 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 | 57 | file, 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 |
61 | last(1), |
62 | sigvec(2), | |
81146605 | 63 | acct(8), |
26df3ca1 | 64 | core(5) |