Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lastcomm(1) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

last(1)

sigvec(3)

acct(4)

lastcomm(1)             (BSD Compatibility Package)             lastcomm(1)

NAME
     lastcomm - show the last commands executed, in reverse order

SYNOPSIS
     /usr/ucb/lastcomm [command-name ...] [user-name ...] [terminal-name ...]

DESCRIPTION
     The lastcomm command gives information on previously executed com-
     mands. 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.

EXAMPLES
     The command:

          lastcomm a.out root term/01

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

          lastcomm root

     would produce a listing of all the commands executed by user root.

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

     -  The command name under which the process was called.

     -  One or more flags indicating special information about the process.
        The flags have the following meanings:

        F   The process performed a fork but not an exec.

        S   The process ran as a set-user-id program.

     -  The name of the user who ran the process.

     -  The terminal which the user was logged in on at the time (if appli-
        cable).

     -  The amount of CPU time used by the process (in seconds).

     -  The date and time the process exited.

FILES
     /var/adm/pacct
          accounting file

SEE ALSO
     last(1), sigvec(3), acct(4).



Page 1                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026