Seth Woolley's Man Viewer

last(1) - last, lastb, last - indicate last logins by user or terminal - man 1 last

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

LAST(1)                                                                LAST(1)

       last -- indicate last logins by user or terminal

       last [-number] [-f filename] [-t tty(1,4)] [-h hostname] [-i address] [-l]
       [-y] [name...]

       Last looks back in(1,8) the wtmp file(1,n) which records all logins  and  logouts
       for  information  about  a  user,  a teletype or any group of users(1,5) and
       teletypes.  Arguments specify names of users(1,5) or teletypes of  interest.
       If  multiple  arguments are given, the information which applies to any
       of the arguments is printed.  For example ``last root  console(4,n)''  would
       list all of root's sessions as well as all sessions on the console(4,n) ter-
       minal.  Last displays the sessions of the  specified  users(1,5)  and  tele-
       types,  most  recent  first,  indicating the times at which the session
       began, the duration 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, last so indicates.

       The pseudo-user reboot logs in(1,8) at reboots of the system.

       Last with no arguments displays a record of all logins and logouts,  in(1,8)
       reverse order.

       If  last is interrupted, it indicates how far the search has progressed
       in(1,8) wtmp.  If interrupted with a quit signal(2,7) last indicates how far  the
       search has progressed so far, and the search continues.

              limit  the number of entries displayed to that specified by num-

       -f filename
              Use filename as the name  of  the  accounting  file(1,n)  instead  of

       -h hostname
              List only logins from hostname.

       -i IP address"
              List only logins from IP address.

       -l     List  IP  addresses  of  remote  hosts instead of truncated host(1,5)

       -t tty(1,4) List only logins on tty(1,4).

       -y     Also report year of dates.

       /var/log/wtmp -- login(1,3,5) data base

                                 20 March 1992                         LAST(1)

References for this manual (incoming links)