nerdexam
CompTIA

XK0-004 · Question #404

A remote server reverts to the incorrect time when it is restarted. Which of the following will save the correct time to the BIOS clock once the time and date have been set on the server?

The correct answer is D. date -- setclock. NOTE: The marked answer D (date --setclock) is incorrect - the date command has no --setclock option. The correct answer is C: 'hwclock --systohc'. The hwclock utility manages the hardware (BIOS/RTC) clock. The --systohc flag stands for 'system to hardware clock' and writes the c

System Management

Question

A remote server reverts to the incorrect time when it is restarted. Which of the following will save the correct time to the BIOS clock once the time and date have been set on the server?

Options

  • Abtime -- settime
  • Bbtime -- setdate
  • Chwclock -- systohc
  • Ddate -- setclock

How the community answered

(23 responses)
  • A
    4% (1)
  • C
    4% (1)
  • D
    91% (21)

Explanation

NOTE: The marked answer D (date --setclock) is incorrect - the date command has no --setclock option. The correct answer is C: 'hwclock --systohc'. The hwclock utility manages the hardware (BIOS/RTC) clock. The --systohc flag stands for 'system to hardware clock' and writes the current system time to the persistent hardware clock so the correct time survives reboots. This is the standard Linux procedure for syncing the hardware clock after manually setting the system time.

Topics

#system clock#hwclock#BIOS clock#time synchronization

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice