What type of log file is /var/log/wtmp used for?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The file located at /var/log/wtmp serves as a log of user login records on a Linux system. This log specifically tracks successful logins and logouts, as well as system reboots.

When a user logs in to the system, a record is added to the wtmp file, which maintains a historic account of user sessions. This information is crucial for monitoring user activity, auditing system access, and maintaining security protocols. System administrators can use tools like who, last, or lastb to read this log and check login history, which provides insights into user behavior and can help identify unauthorized access attempts.

Other log types mentioned, such as system error logs or application event logs, are stored in different files, usually within the /var/log directory as well, but they serve different purposes unrelated to tracking user logins.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy