Introduction
On Linux, /var/run/utmp records who is logged in now and /var/log/wtmp keeps the
history of logins and logouts. Both use the same record.
Structure
A binary file of fixed records holding a record type, process ID, terminal name and ID, user name, remote host, exit status, session ID, time and address. The format depends on the machine, so a file should be read on the same architecture that wrote it.
Not described
Known, not yet covered
- Reference: the layout of the format is not yet described here: field sizes and offsets differ between C libraries and architectures.
- Viewer: the site has no viewer for this format.
Links
Software
- who – lists the users recorded as logged in
Reference
- utmp(5) – login records