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