BSD 4_1c_2 development
[unix-history] / usr / man / man5 / utmp.5
CommitLineData
d69dccb4
C
1.TH UTMP 5 "15 January 1983"
2.SH NAME
3utmp, wtmp \- login records
4.SH SYNOPSIS
5.B #include <utmp.h>
6.SH DESCRIPTION
7The
8.I utmp
9file records information about who is currently using the system.
10The file is a sequence of entries with the following
11structure declared in the include file:
12.RS
13.PP
14.nf
15.so /usr/include/utmp.h
16.fi
17.RE
18.PP
19This structure gives the name of the special file
20associated with the user's terminal, the user's login name,
21and the time of the login in the form of
22.IR time (3).
23.PP
24The
25.I wtmp
26file records all logins and logouts.
27A null user name indicates a logout on the associated terminal.
28Furthermore, the terminal name `~' indicates that the
29system was rebooted at the indicated time;
30the adjacent pair of entries with terminal names
31`\^|\^' and `}' indicate the system-maintained time just before and just after a
32.I date
33command has changed the system's idea of the time.
34.PP
35.I Wtmp
36is maintained by
37.IR login (1)
38and
39.IR init (8).
40Neither of these programs creates the file,
41so if it is removed record-keeping is turned off. It is summarized by
42.IR ac (8).
43.SH FILES
44/etc/utmp
45.br
46/usr/adm/wtmp
47.SH "SEE ALSO"
48login(1), init(8), who(1), ac(8)