[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    lastcomm(1) manual page Table of Contents

Name

lastcomm - display the last commands executed, in reverse order

Synopsis

lastcomm [ command-name ] ... [ user-name ] ... [ terminal-name ] ...

Availability

SUNWesu

Description

The lastcomm command gives information on previously executed commands. lastcomm with no arguments displays information about all the commands recorded during the current accounting file’s lifetime. If called with arguments, lastcomm only displays accounting entries with a matching command-name, user-name, or terminal-name.

If terminal-name is ‘- -’ there was no controlling TTY for the process. The process was probably executed during boot time. If terminal-name is ‘??’, the controlling TTY could not be decoded into a printable name.

Examples

The command:
example% lastcomm a.out root term/01

produces a listing of all the executions of commands named a.out, by user root while using the terminal term/01.

The command:

example% lastcomm root

produces a listing of all the commands executed by user root.

For each process entry, lastcomm displays the following items of information:

Files

/var/adm/pacct
accounting file

See Also

last(1) , sigvec(3B) , acct(4) , core(4)


Table of Contents