wtmp
wtmp is a binary log file used by Unix-like operating systems to record user session events and related system activity. It provides a historical record of logins, logouts, reboots, and other session-related events for auditing, accounting, and troubleshooting. On most systems the file is located at /var/log/wtmp, though location and rotation policies can vary.
Because wtmp is binary, it is not meant to be read directly with a text editor. System
Related files include utmp, which tracks currently active user sessions in real time, usually at /var/run/utmp,
Rotation and retention of wtmp are commonly managed by the system’s log rotation framework. As the file