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