XK0-004 · Question #255
A company requires all servers to be configured with the BIOS on Coordinated Universal Time and the OS on Central Standard Time. Which of the following can be used to change the time according to thes
The correct answer is C. date E. hwclock. Setting the hardware clock (BIOS) to UTC requires hwclock, while setting the OS system time to Central Standard Time requires the date command.
Question
A company requires all servers to be configured with the BIOS on Coordinated Universal Time and the OS on Central Standard Time. Which of the following can be used to change the time according to these requirements? (Choose two.)
Options
- Alocalectl
- BLC_ALL
- Cdate
- Dtime
- Ehwclock
- Fcrontab
How the community answered
(24 responses)- A8% (2)
- B4% (1)
- C88% (21)
Why each option
Setting the hardware clock (BIOS) to UTC requires hwclock, while setting the OS system time to Central Standard Time requires the date command.
localectl configures the system locale and keyboard layout, not the system time or hardware clock.
LC_ALL is an environment variable that overrides locale category settings; it has no effect on system time or hardware clock configuration.
The 'date' command displays and sets the operating system's software clock; using 'date -s' allows an administrator to set the system time to a specific value reflecting Central Standard Time, operating on the OS-level clock independently of the hardware clock.
The 'time' command measures the execution duration of other commands; it cannot set or change the system or hardware clock.
hwclock reads from and writes to the hardware clock stored in BIOS/CMOS; running 'hwclock --utc' or 'hwclock --systohc --utc' configures the hardware clock to Coordinated Universal Time, directly satisfying the BIOS UTC requirement.
crontab schedules recurring tasks but has no capability to directly set or modify the system time or hardware clock.
Concept tested: Setting hardware and OS time with hwclock and date
Source: https://linux.die.net/man/8/hwclock
Topics
Community Discussion
No community discussion yet for this question.