BSD 4_2 development
[unix-history] / usr / man / man1 / last.1
CommitLineData
cfdf0ef4
C
1.TH LAST 1 "1 April 1981"
2.UC 4
3.SH NAME
4last \- indicate last logins of users and teletypes
5.SH SYNOPSIS
6.B last
7[
8\-N
9]
10[
11name ...
12] [
13tty ...
14]
15.SH DESCRIPTION
16.I Last
17will look back in the
18.I wtmp
19file which records all logins and logouts for information about
20a user, a teletype or any group of users and teletypes.
21Arguments specify names of users or teletypes of interest.
22Names of teletypes may be given fully or abbreviated.
23For example `last 0' is the same as `last tty0'.
24If multiple arguments are given, the information which applies
25to any of the arguments is printed. For example `last root console'
26would list all of "root's" sessions as well as all sessions
27on the console terminal.
28.I Last
29will print the sessions of the specified users and teletypes,
30most recent first, indicating the times at which the session
31began, the duration of the session, and the teletype which the
32session took place on.
33If the session is still continuing or was cut short by a reboot,
34.I last
35so indicates.
36.PP
37The pseudo-user
38.B reboot
39logs in at reboots of the system, thus
40.DT
41.PP
42 last reboot
43.PP
44will give an indication of mean time between reboot.
45.PP
46.I Last
47with no arguments prints a record of all logins and logouts, in
48reverse order.
49The
50.B \-N
51option limits the report to N lines.
52.PP
53If
54.I last
55is interrupted, it indicates how far the search has progressed
56in
57.I wtmp.
58If interrupted with a quit signal
59(generated by a control-\e)
60.I last
61indicates how far the search has progressed so far, and the
62search continues.
63.SH FILES
64/usr/adm/wtmp login data base
65.br
66/usr/adm/shutdownlog which records shutdowns and reasons for same
67.SH SEE\ ALSO
68wtmp(5), ac(8), lastcomm(1)
69.SH AUTHOR
70Howard Katseff