Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

last(1)

acct(5)

core(5)

LASTCOMM(1)  —  USER COMMANDS

NAME

lastcomm − show last commands executed in reverse order

SYNOPSIS

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

DESCRIPTION

Lastcomm 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. 

EXAMPLES

tutorial% lastcomm a.out root ttyd0

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

tutorial% 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:

FThe process performed a fork but not an exec.

SThe process ran as a set-user-id program. 

DThe process dumped memory. 

XThe process was killed by some signal. 

•The name of the user who ran the process. 

•The terminal which the user was logged in on at the time (if applicable). 

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

•The date and time the process exited. 

FILES

/usr/adm/acctaccounting file

SEE ALSO

last(1), acct(5), core(5)

Sun Release 3.0β  —  Last change: 1 February 1985

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