hwclock Flashcards
hwclock
hwclock is an administration tool for the time clocks.
![](https://s3.amazonaws.com/brainscape-prod/system/cm/313/435/789/a_image_thumb.png?1591532785)
hwclock [FUNCTION]
-r, –show, Display the RTC time.
–get, Display Drift corrected RTC time.
–set, Set the RTC according to –date.
-s, –hctosys, Set the system time from RTC.
-w, –systohc, Set the RTC from the system time.
–systz, Send time scale configs to kernel.
–a, –adjust, Adjust hte RTV to account for systematci drift.
–predict, Predict the drifted RTC time according to –date.
hwclock [OPTIONS]
- u, –utc, The RTC timescale is UTC.
- l, –localtime, The RTC timscale is Local.
- f, rtc <file>, Use an alternate file to /dev/rtc0.</file>
–directisa, Use the ISA bus instead of /dev/rtc0 access.
–date <time>, date/time input for --set and --predict.</time>
–delay <sec>, Delay used when set new RTC time.</sec>
–update-drift, Update the RTC drift factor.
–noadjfile, Do not use the /etc/adjtime.
–adjfile <file>, Use an alternate file to /etc/adjtime.</file>
–test, Dry run.
-v, –verbose