Linux Essentials (010-160) — Question 46
Which of the following outputs could stem from the command last?
Answer options
- A. 1 ls 2 cat text.txt 3 logout
- B. Password for user last changed at Sat Mar 31 16:38:57 EST 2018
- C. Last login: Fri Mar 23 10:56:39 2018 from server.example.com
- D. EXT4-fs (dm-7): mounted filesystem with ordered data mode. Opts: (null)
- E. root tty2 Wed May 17 21:11 - 21:11 (00:00)
Correct answer: E
Explanation
The last command is used to display a list of recent logins, which is why option E is correct as it shows a user login event. Options A, B, C, and D do not represent output from the last command; they relate to other system commands or events that are not relevant to user login history.