last(1) last(1)
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 the more program for
screen viewing is advised.
If last is interrupted with an Interrupt signal, (generated
by CONTROL-c) 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 an Interrupt signal.
FILES
/usr/bin/last
/etc/wtmp
Page 1 (last mod. 1/16/87)