Commit | Line | Data |
---|---|---|
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 | .\" | |
b6ef7299 | 5 | .\" @(#)last.1 6.3 (Berkeley) %G% |
e20828d9 | 6 | .\" |
d6370649 | 7 | .TH LAST 1 "" |
e20828d9 KM |
8 | .UC 4 |
9 | .SH NAME | |
f619d373 | 10 | last \- indicate last logins of users and ttys |
e20828d9 | 11 | .SH SYNOPSIS |
b6ef7299 | 12 | \fBlast\fP [-#] [-f file] [-h host] [-t tty] [user ...] |
e20828d9 | 13 | .SH DESCRIPTION |
f619d373 KB |
14 | \fILast\fP will list the sessions of specified \fIusers,\fP \fIttys,\fP |
15 | and \fIhosts,\fP in reverse time order. Each line of output contains | |
16 | the user name, the tty from which the session was conducted, any | |
17 | hostname, the start and stop times for the session, and the duration | |
18 | of the session. If the session is still continuing or was cut short by | |
b6ef7299 | 19 | a crash or shutdown, \fIlast\fP will so indicate. |
e20828d9 | 20 | .PP |
b6ef7299 KB |
21 | \fILast\fP reads the file \fIfile\fP, or by default, \fI/usr/adm/wtmp\fP. |
22 | The \fB-#\fP option limits the report to \fB#\fP lines. | |
f619d373 KB |
23 | .PP |
24 | Other arguments specify \fIusers,\fP \fIttys\fP or \fIhosts\fP of interest. | |
b6ef7299 KB |
25 | Tty names may be given fully or abbreviated, e.g., ``last -t 03'' is |
26 | equivalent to ``last -t tty03''. Host names may be internet numbers. If | |
27 | multiple arguments are given, the information which applies to any of the | |
28 | arguments is printed, e.g., ``last root -t console'' would list all of | |
29 | ``root's'' sessions as well as all sessions on the console terminal. If no | |
30 | users, hostnames or terminals are specified, \fIlast\fP prints a record of | |
31 | all logins and logouts. | |
f619d373 KB |
32 | .PP |
33 | The pseudo-user \fBreboot\fP logs in at reboots of the system, thus | |
b6ef7299 | 34 | ``last reboot'' will give an indication of mean time between reboot. |
e20828d9 | 35 | .PP |
f619d373 KB |
36 | If \fIlast\fP is interrupted, it indicates to what date the search has |
37 | progressed. If interrupted with a quit signal \fIlast\fP indicates how | |
38 | far the search has progressed and then continues. | |
e20828d9 KM |
39 | .SH FILES |
40 | /usr/adm/wtmp login data base | |
41 | .br | |
f619d373 KB |
42 | .SH "SEE ALSO" |
43 | lastcomm(1), utmp(5), ac(8) |