nerdexam
CompTIA

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.

System Management

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)
  • A
    8% (2)
  • B
    4% (1)
  • C
    88% (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.

Alocalectl

localectl configures the system locale and keyboard layout, not the system time or hardware clock.

BLC_ALL

LC_ALL is an environment variable that overrides locale category settings; it has no effect on system time or hardware clock configuration.

CdateCorrect

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.

Dtime

The 'time' command measures the execution duration of other commands; it cannot set or change the system or hardware clock.

EhwclockCorrect

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.

Fcrontab

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

#hwclock#date command#timezone#system time

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice