| 1 | .TH LAST 1 2/24/79 |
| 2 | .UC |
| 3 | .SH NAME |
| 4 | last \- indicate last logins of users and teletypes |
| 5 | .SH SYNOPSIS |
| 6 | .B last |
| 7 | [ |
| 8 | name ... |
| 9 | ] [ |
| 10 | tty ... |
| 11 | ] |
| 12 | .SH DESCRIPTION |
| 13 | .I Last |
| 14 | will look back in the |
| 15 | .I wtmp |
| 16 | file which records all logins and logouts for information about |
| 17 | a user, a teletype or any group of users and teletypes. |
| 18 | Arguments specify names of users or teletypes of interest. |
| 19 | Names of teletypes may be given fully or abbreviated. |
| 20 | For example `last 0' is the same as `last tty0'. |
| 21 | If multiple arguments are given, the information which applies |
| 22 | to any of the arguments is printed. For example `last root console' |
| 23 | would list all of "root's" sessions as well as all sessions |
| 24 | on the console terminal. |
| 25 | .I Last |
| 26 | will print the sessions of the specified users and teletypes, |
| 27 | most recent first, indicating the times at which the session |
| 28 | began, the duration of the session, and the teletype which the |
| 29 | session took place on. |
| 30 | If the session is still continuing or was cut short by a crash, |
| 31 | .I last |
| 32 | so indicates. |
| 33 | .PP |
| 34 | The teletype |
| 35 | .B tty~ |
| 36 | records the crashes of the system; thus |
| 37 | .DT |
| 38 | .PP |
| 39 | last tty~ |
| 40 | .PP |
| 41 | will give an indication of the reliability of the system. |
| 42 | .PP |
| 43 | .I Last |
| 44 | with no arguments prints a record of all logins and logouts, in |
| 45 | reverse order. |
| 46 | .PP |
| 47 | If |
| 48 | .I last |
| 49 | is interrupted, it indicates how far the search has progressed |
| 50 | in |
| 51 | .I wtmp. |
| 52 | .SH FILES |
| 53 | .DT |
| 54 | /usr/adm/wtmp login data base |
| 55 | .SH SEE\ ALSO |
| 56 | ac(1m), wtmp(5) |
| 57 | .SH AUTHOR |
| 58 | Howard Katseff |
| 59 | .SH BUGS |