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
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)- A4% (1)
- C4% (1)
- D91% (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
Community Discussion
No community discussion yet for this question.