1LASTCOMM(1)                 General Commands Manual                LASTCOMM(1)
2
3
4

NAME

6       lastcomm - show last commands executed in reverse order
7

SYNOPSIS

9       lastcomm  [  -f  file  ] [ command name ] ... [user name] ... [terminal
10       name] ...
11

DESCRIPTION

13       Lastcomm gives information on previously executed commands.
14
15       Option:
16
17
18       -f file   Read from file rather than the default accounting file.
19
20       With no arguments, lastcomm prints information about all  the  commands
21       recorded during the current accounting file's lifetime.  If called with
22       arguments, only accounting entries with a matching command  name,  user
23       name, or terminal name are printed.  So, for example,
24
25            lastcomm a.out root ttyd0
26
27       would  produce  a listing of all the executions of commands named a.out
28       by user root on the terminal ttyd0.
29
30       For each process entry, the following are printed.
31
32            The name of the user who ran the process.
33            Flags, as accumulated by the accounting facilities in the system.
34            The command name under which the process was called.
35            The amount of cpu time used by the process (in seconds).
36            The time the process exited.
37
38       The flags are encoded as follows: ``S'' indicates the command was  exe‐
39       cuted  by the super-user, ``F'' indicates the command ran after a fork,
40       but without a following exec, ``C'' indicates the command  was  run  in
41       PDP-11  compatibility mode (VAX only), ``D'' indicates the command ter‐
42       minated with the generation of a core file,  and  ``X''  indicates  the
43       command was terminated with a signal.
44

FILES

46       /usr/adm/acct       Default accounting file.
47

SEE ALSO

49       last(1), sigvec(2), acct(8), core(5)
50
51
52
534th Berkeley Distribution      February 3, 1995                    LASTCOMM(1)
Impressum