4.3BSD-Reno/share/man/cat1/last.0
LAST(1) UNIX Reference Manual LAST(1)
NNAAMMEE
llaasstt - indicate last logins of users and ttys
SSYYNNOOPPSSIISS
llaasstt [--#] [--ff _f_i_l_e] [--hh _h_o_s_t] [--tt _t_t_y] [user ...]
DDEESSCCRRIIPPTTIIOONN
LLaasstt will list the sessions of specified _u_s_e_r_s, _t_t_y_s, and _h_o_s_t_s, in re-
verse time order. Each line of output contains the user name, the tty
from which the session was conducted, any hostname, the start and stop
times for the session, and the duration of the session. If the session
is still continuing or was cut short by a crash or shutdown, llaasstt will so
indicate.
--ff _f_i_l_e LLaasstt reads the file _f_i_l_e instead of the default, /_v_a_r/_l_o_g/_w_t_m_p.
--# option limits the report to # lines.
--tt _t_t_y Specify the _t_t_y. Tty names may be given fully or abbreviated,
e.g., ``last -t 03'' is equivalent to ``last -t tty03''.
--hh _h_o_s_t _H_o_s_t names may be names or internet numbers.
If multiple arguments are given, the information which applies to any of
the arguments is printed, e.g., ``last root -t console'' would list all
of ``root's'' sessions as well as all sessions on the console terminal.
If no users, hostnames or terminals are specified, llaasstt prints a record
of all logins and logouts.
The pseudo-user _r_e_b_o_o_t logs in at reboots of the system, thus ``last re-
boot'' will give an indication of mean time between reboot.
If llaasstt is interrupted, it indicates to what date the search has pro-
gressed. If interrupted with a quit signal llaasstt indicates how far the
search has progressed and then continues.
FFIILLEESS
/_v_a_r/_l_o_g/_w_t_m_p login data base
SSEEEE AALLSSOO
lastcomm(1), utmp(5), ac(8)
HHIISSTTOORRYY
LLaasstt appeared in 3 BSD.