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