Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ last(1) — GL1 W2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

LAST(1)  —  Silicon Graphics

NAME

last − indicate last logins of users and teletypes

SYNOPSIS

last [ name ...  ] [ tty ...  ]

DESCRIPTION

Last will look back in the wtmp file which records all logins and logouts for information about a user, a teletype [terminal] or any group of users and teletypes.  Arguments specify names of users or teletypes of interest.  Names of teletypes may be given fully or abbreviated.  For example last 0 is the same as last tty0’ .  If multiple arguments are given, the information which applies to any of the arguments is printed.  For example last root console would list all of "root’s" sessions as well as all sessions on the console terminal. 

Last reports the sessions of the specified users and teletypes, most recent first, indicating start times, duration, and teletype for each.  If the session is still continuing or was cut short by a reboot, last so indicates. 

EXAMPLE

last reboot

will give an indication of mean time between reboots of the system. 

Last with no arguments prints a record of all logins and logouts, in reverse order.  Since last can generate a great deal of output, piping it through more (1) for screen viewing is advised. 

If last is interrupted with a "break", it indicates how far the search has progressed in wtmp. If interrupted with a quit signal (generated by a control-\), last exits and dumps core. 

Control-d (EOF) signal does nothing.  Therefore exit gracefully from last with a "break" or "shift/delete" signal. 

FILES

/usr/adm/wtmplogin data base

AUTHOR

Howard Katseff

Version 2.1  —  January 02, 1985

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