nerdexam
ExamsXK0-004Questions#181
CompTIA

XK0-004 · Question #181

XK0-004 Question #181: Real Exam Question with Answer & Explanation

The correct answer is A: last. The last command in Linux is used to display the list of all the users logged in and out since the file /var/log/wtmp was created. One or more usernames can be given as an argument to display their login in (and out) time and their host-name. The Linux "who" command lets you disp

Question

An administrator is reviewing suspicious activity on a server and needs to determine which users logged into the system within the past 24 hours. Which of the following commands should the administrator run to determine this?

Options

  • Alast
  • Bwho
  • Cid
  • Dusermod

Explanation

The last command in Linux is used to display the list of all the users logged in and out since the file /var/log/wtmp was created. One or more usernames can be given as an argument to display their login in (and out) time and their host-name. The Linux "who" command lets you display the users currently logged in to your UNIX or Linux operating system.

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice