Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lastcomm(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

last

acct/*



LASTCOMM(1,C)               AIX Commands Reference                LASTCOMM(1,C)



-------------------------------------------------------------------------------
lastcomm



PURPOSE

Prints information about all the commands recorded during the current
accounting file's lifetime.

SYNTAX


            +------------------------------------------------+
lastcomm ---|                                                |---|
            +- command-name --- user-name --- terminal-name -+


DESCRIPTION

The lastcomm command gives information on previously executed commands.  With
no arguments, the lastcomm command prints information about all the commands
recorded during the current accounting file's lifetime.  If called with
arguments, only accounting entries with a matching command name, user name, or
terminal name are printed.  So, for example,

  lastcomm a.out root tty0

would produce a listing of all the executions of commands named a.out by user
root on the terminal tty0.

For each process entry, the following are printed.

  o The name of the user who ran the process.
  o Flags, as accumulated by the accounting facilities in the system.
  o The command name under which the process was called.
  o The amount of CPU time used by the process (in seconds).
  o The time the process exited.

The flags are encoded as follows:

  o "S" indicates the command was executed by the superuser

  o "F" indicates the command ran after a fork, but without a following exec

  o "D" indicates the command terminated with the generation of a core file,
    and

  o "X" indicates the command was terminated with a signal.

FILES




Processed November 8, 1990       LASTCOMM(1,C)                                1





LASTCOMM(1,C)               AIX Commands Reference                LASTCOMM(1,C)



/usr/adm/pacct    Current file for process accounting.

RELATED INFORMATION

See the following commands:  "last" and "acct/*."


















































Processed November 8, 1990       LASTCOMM(1,C)                                2



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