


LAST(1)                                                   LAST(1)


NNAAMMEE
       last -- indicate last logins by user or terminal

SSYYNNOOPPSSIISS
       llaasstt [--_n_u_m_b_e_r] [--ff _f_i_l_e_n_a_m_e] [--tt _t_t_y] [--hh _h_o_s_t_n_a_m_e]
       [_n_a_m_e...]

DDEESSCCRRIIPPTTIIOONN
       LLaasstt looks back in the wwttmmpp file which records all  logins
       and  logouts  for  information about a user, a teletype or
       any group of users and teletypes.  Arguments specify names
       of  users or teletypes of interest.  If multiple arguments
       are given, the information which applies  to  any  of  the
       arguments  is  printed.  For example ``llaasstt rroooott ccoonnssoollee''
       would list all of root's sessions as well as all  sessions
       on  the  console  terminal.  LLaasstt displays the sessions of
       the specified users  and  teletypes,  most  recent  first,
       indicating the times at which the session began, the dura-
       tion of the session, and the teletype  which  the  session
       took  place on.  If the session is still continuing or was
       cut short by a reboot, llaasstt so indicates.

       The pseudo-user rreebboooott logs in at reboots of the system.

       LLaasstt with no arguments displays a record of all logins and
       logouts, in reverse order.

       If  llaasstt  is  interrupted, it indicates how far the search
       has progressed in wwttmmpp.  If interrupted with a quit signal
       llaasstt  indicates  how far the search has progressed so far,
       and the search continues.

OOPPTTIIOONNSS
       --_n_u_m_b_e_r
              limit the number of entries displayed to that spec-
              ified by _n_u_m_b_e_r.

       -- _f_i_l_e_n_a_m_e
              Use  _f_i_l_e_n_a_m_e  as  the  name of the accounting file
              instead of //eettcc//wwttmmpp.

       --tt _t_t_y List only logins on _t_t_y.

       --hh _h_o_s_t_n_a_m_e
              List only logins from ostname.

FFIILLEESS
       /etc/wtmp -- login data base









                          20 March 1992                         1


