xref: /original-bsd/share/man/man5/utmp.5 (revision 6386612b)
Copyright (c) 1980 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.

@(#)utmp.5 6.1 (Berkeley) 05/15/85

UTMP 5 ""
C 4
NAME
utmp, wtmp - login records
SYNOPSIS
#include <utmp.h>
DESCRIPTION
The utmp file records information about who is currently using the system. The file is a sequence of entries with the following structure declared in the include file:

This structure gives the name of the special file associated with the user's terminal, the user's login name, and the time of the login in the form of time (3C).

The wtmp file records all logins and logouts. A null user name indicates a logout on the associated terminal. Furthermore, the terminal name `~' indicates that the system was rebooted at the indicated time; the adjacent pair of entries with terminal names `\^|\^' and `}' indicate the system-maintained time just before and just after a date command has changed the system's idea of the time.

Wtmp is maintained by login (1) and init (8). Neither of these programs creates the file, so if it is removed record-keeping is turned off. It is summarized by ac (8).

FILES
/etc/utmp

/usr/adm/wtmp

"SEE ALSO"
login(1), init(8), who(1), ac(8)