nerdexam
IBM

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.

System Management

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)
  • A
    72% (33)
  • B
    15% (7)
  • C
    4% (2)
  • D
    9% (4)

Why each option

The who -b command reads system accounting records to display the time and date of the most recent system boot.

Awho-bCorrect

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.

Blast-b

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.

Cboot-b

boot-b is not a recognized Unix or Linux command for any purpose.

Dtime-x

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

#who -b#boot time#system uptime#audit commands

Community Discussion

No community discussion yet for this question.

Full 000-221 Practice