000-221 · Question #110
Which command will display the time and date of the last boot?
The correct answer is A. who-b. The who -b command reads system accounting records to display the time and date of the most recent system boot.
Question
Which command will display the time and date of the last boot?
Options
- Awho-b
- Blast-b
- Cboot-b
- Dtime-x
How the community answered
(46 responses)- A72% (33)
- B15% (7)
- C4% (2)
- D9% (4)
Why each option
The who -b command reads system accounting records to display the time and date of the most recent system boot.
The -b flag instructs the who command to display the time of the last system boot. It reads from the /var/run/utmp file, which records system events including boot timestamps. This is the standard Unix and Linux method for retrieving last boot time directly from the command line.
last -b is not a valid option for the last command; to view reboot history using last, the correct syntax is last reboot, not a -b flag.
boot-b is not a recognized Unix or Linux command for any purpose.
time-x is not a valid command and does not exist as a tool for displaying system boot information.
Concept tested: Using who -b to display last system boot time
Source: https://man7.org/linux/man-pages/man1/who.1.html
Topics
Community Discussion
No community discussion yet for this question.