Which UNIX log file contains information about currently logged in users?
Which UNIX log file contains information about currently logged in users?
The correct UNIX log file that contains information about currently logged in users is 'utmp'. The file typically located at /var/run/utmp holds details of the active login sessions. Other files, such as 'wtmp', maintain a history of logins, logouts, and system reboots, whereas 'btmp' tracks bad login attempts. 'lastlog' records the last login of each user.
Answer should be "C" UTMP /var/run/utmp – Contains currently logged in users. /var/log/wtmp – Contains all current and past logins and additional information about system reboots, etc. /var/log/btmp – Contains all bad login attempts.
UTMP...answer is C
/var/run/utmp for currently logged in users (by default)