BSD 1 development
[unix-history] / man6 / last.6
CommitLineData
738d637a
HK
1.th LAST VI 8/25/77
2.sh NAME
3last \- indicate last logins of users and teletypes
4.sh SYNOPSIS
5.bd last
6[
7.bd \-
8] [
9name ...
10] [
11tty ...
12]
13.sh DESCRIPTION
14.it Last
15will look back in the
16.it wtmp
17file which records all logins and logouts for information about
18a user, a teletype or any group of users and/or teletypes.
19A single character argument specifies a teletype of interest,
20multi-character arguments specify users of interest.
21.it Last
22will print the sessions of the specified users and teletypes,
23most recent first, indicating the times at which the session
24began, the duration of the session, and the teletype which the
25session took place on.
26If the session is still continuing or was cut short by a crash,
27.it last
28so indicates.
29.s3
30The teletype
31.bd ~
32records the crashes of the system; thus
33.dt
34.s3
35 last ~
36.s3
37will give an indication of the reliability of the system.
38.s3
39.it Last
40with no arguments prints a record of all logins and logouts, in
41reverse order.
42The special argument
43.bd \-
44suppresses all sessions by users who have the character `\-'
45in their login names or whose login names begin with a digit.
46This can be used to suppress student accounts, which have
47this format on the Cory Hall system at UC Berkeley.
48.s3
49If
50.it last
51is interrupted, it indicates how far the search has progressed
52in
53.it wtmp.
54.sh FILES
55.dt
56/usr/adm/wtmp login data base
57.sh SEE\ ALSO
58sess (VI), ac (VIII), wtmp (V)
59.sh AUTHOR
60Howard Katseff
61.sh BUGS