Exam GCIH All QuestionsBrowse all questions from this exam
Question 103

Which UNIX log file contains information about currently logged in users?

    Correct Answer: C

    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.

Discussion
XBalOption: C

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.

ShelaneOption: C

UTMP...answer is C

ImaflowerOption: B

/var/run/utmp for currently logged in users (by default)