LAST(1) UNIX Programmer's Manual LAST(1) NNAAMMEE last - indicate last logins of users and ttys SSYYNNOOPPSSIISS llaasstt [-#] [-f file] [-h host] [-t tty] [user ...] DDEESSCCRRIIPPTTIIOONN _L_a_s_t will list the sessions of specified _u_s_e_r_s, _t_t_y_s, and _h_o_s_t_s, in reverse 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 con- tinuing or was cut short by a crash or shutdown, _l_a_s_t will so indicate. _L_a_s_t reads the file _f_i_l_e, or by default, /_u_s_r/_a_d_m/_w_t_m_p. The --## option limits the report to ## lines. Other arguments specify _u_s_e_r_s, _t_t_y_s or _h_o_s_t_s of interest. Tty names may be given fully or abbreviated, e.g., ``last -t 03'' is equivalent to ``last -t tty03''. Host names may be 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, _l_a_s_t prints a record of all logins and logouts. The pseudo-user rreebboooott logs in at reboots of the system, thus ``last reboot'' will give an indication of mean time between reboot. If _l_a_s_t is interrupted, it indicates to what date the search has progressed. If interrupted with a quit signal _l_a_s_t indicates how far the search has progressed and then contin- ues. FFIILLEESS /usr/adm/wtmp login data base SSEEEE AALLSSOO lastcomm(1), utmp(5), ac(8) Printed 7/9/88 September 10, 1987 1