xref: /386bsd/usr/share/man/cat1/last.0 (revision a2142627)
1LAST(1)                     386BSD Reference Manual                    LAST(1)
2
3NNAAMMEE
4     llaasstt - indicate last logins of users and ttys
5
6SSYYNNOOPPSSIISS
7     llaasstt [--_n] [--ff _f_i_l_e] [--hh _h_o_s_t] [--tt _t_t_y] [user ...]
8
9DDEESSCCRRIIPPTTIIOONN
10     LLaasstt will list the sessions of specified _u_s_e_r_s, _t_t_y_s, and _h_o_s_t_s, in
11     reverse time order.  Each line of output contains the user name, the tty
12     from which the session was conducted, any hostname, the start and stop
13     times for the session, and the duration of the session.  If the session
14     is still continuing or was cut short by a crash or shutdown, llaasstt will so
15     indicate.
16
17     --ff _f_i_l_e     LLaasstt reads the file _f_i_l_e instead of the default,
18                 /_v_a_r/_l_o_g/_w_t_m_p.
19
20     --_n          Limits the report to _n lines.
21
22     --tt _t_t_y      Specify the _t_t_y. Tty names may be given fully or abbreviated,
23                 for example, ``last -t 03'' is equivalent to ``last -t
24                 tty03''.
25
26     --hh _h_o_s_t     _H_o_s_t names may be names or internet numbers.
27
28     If multiple arguments are given, the information which applies to any of
29     the arguments is printed, e.g., ``last root -t console'' would list all
30     of ``root's'' sessions as well as all sessions on the console terminal.
31     If no users, hostnames or terminals are specified, llaasstt prints a record
32     of all logins and logouts.
33
34     The pseudo-user _r_e_b_o_o_t logs in at reboots of the system, thus ``last
35     reboot'' will give an indication of mean time between reboot.
36
37     If llaasstt is interrupted, it indicates to what date the search has
38     progressed.  If interrupted with a quit signal llaasstt indicates how far the
39     search has progressed and then continues.
40
41FFIILLEESS
42     /var/log/wtmp  login data base
43
44SSEEEE AALLSSOO
45     lastcomm(1),  utmp(5),  ac(8)
46
47HHIISSTTOORRYY
48     LLaasstt appeared in 3.0BSD.
49
504th Berkeley Distribution         May 5, 1991                                1
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67