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