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