LFCS · Question #523
LFCS Question #523: Real Exam Question with Answer & Explanation
The correct answer is B: hwclock --systohc --localtime. When a dual-boot system shows time discrepancies in Linux after booting into another OS, it usually indicates a conflict in how the operating systems interpret the hardware clock (RTC).
Question
On a dual boot system, every time the system is booted back into Linux the time has been set backward by one day. Which of the following commands will correct the problem?
Options
- Adate -d '+ 1 day'
- Bhwclock --systohc --localtime
- Cntpdate pool.ntp.org
- Dtime hwclock
Explanation
When a dual-boot system shows time discrepancies in Linux after booting into another OS, it usually indicates a conflict in how the operating systems interpret the hardware clock (RTC).
Common mistakes.
- A. The
date -d '+ 1 day'command would simply advance the system date by one day, which is a temporary fix and does not address the underlying issue of how Linux interprets the hardware clock. - C. The
ntpdate pool.ntp.orgcommand synchronizes the system time with an NTP server, but it does not reconfigure how Linux interacts with the hardware clock, so the problem would likely reoccur on reboot. - D. The command
time hwclockwould measure the execution time of thehwclockcommand, not configure the hardware clock settings to resolve time discrepancies.
Concept tested. Hardware clock synchronization in dual-boot systems
Reference. https://man7.org/linux/man-pages/man8/hwclock.8.html
Topics
Community Discussion
No community discussion yet for this question.