PrepAway - Latest Free Exam Questions & Answers

which you just updated with NTP. To do this, complete the following command:

You need to sync your hardware clock, which is on GMT, with your system clock, which you just updated with NTP.

To do this, complete the following command: _________ -u –systohc

PrepAway - Latest Free Exam Questions & Answers

Answer: hwclock

Explanation:
From the man pages:
hwclock is a tool for accessing the Hardware Clock. You can display the current time, set the Hardware Clock to a specified time, set the Hardware Clock to the System Time, and set the System Time from the Hardware Clock.
You can also run hwclock periodically to insert or remove time from the Hardware Clock to compensate for systematic drift (where the clock consistently gains or loses time at a certain rate if left to run).
-w, –systohc Set the Hardware Clock to the current System Time.
-s, –hctosys Set the System Time from the Hardware Clock.
-u, –utc
–localtime Indicates that the Hardware Clock is kept in Coordinated Universal Time or local time, respectively. It is your choice whether to keep your clock in UTC or local time, but nothing in the clock tells which you’ve chosen. So this option is how you give that information to hwclock.


Leave a Reply