1LAST(1)                     General Commands Manual                    LAST(1)
2
3
4

NAME

6       last - indicate last logins of users and teletypes
7

SYNOPSIS

9       last [ -f filename ] [ -N ] [ name ...  ] [ tty ...  ]
10

DESCRIPTION

12       Last  will  look  back  in  the  wtmp file which records all logins and
13       logouts for information about a user, a teletype or any group of  users
14       and teletypes.  Arguments specify names of users or teletypes of inter‐
15       est.  Names of teletypes may be given fully or abbreviated.  For  exam‐
16       ple  `last  0'  is  the same as `last tty0'.  If multiple arguments are
17       given, the information  which  applies  to  any  of  the  arguments  is
18       printed.   For  example  `last root console' would list all of "root's"
19       sessions as well as all sessions on the console  terminal.   Last  will
20       print  the  sessions  of the specified users and teletypes, most recent
21       first, indicating the times at which the session began, the duration of
22       the  session, and the teletype which the session took place on.  If the
23       session is still continuing or was cut short by a reboot, last so indi‐
24       cates.
25
26       The pseudo-user reboot logs in at reboots of the system, thus
27
28            last reboot
29
30       will give an indication of mean time between reboot.
31
32       Last  with  no  arguments prints a record of all logins and logouts, in
33       reverse order.  The -f filename option allows the user  to  examine  an
34       alternate wtmp file.  The -N option limits the report to N lines.
35
36       If  last is interrupted, it indicates how far the search has progressed
37       in wtmp.  If interrupted with a quit signal (generated by a  control-\)
38       last indicates how far the search has progressed so far, and the search
39       continues.
40

FILES

42       /usr/adm/wtmp       login data base
43       /usr/adm/shutdownlog     which records shutdowns and reasons for same
44

SEE ALSO

46       wtmp(5), ac(8), lastcomm(1)
47

AUTHOR

49       Howard Katseff
50
51
52
534th Berkeley Distribution       April 29, 1985                         LAST(1)
Impressum