Hwclock

From Notes_Wiki
Revision as of 04:24, 8 August 2015 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>System_administration_tools|System Administration Tools</yambe:breadcrumb> =hwclock= All systems maintain two different times. One is software clock which ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>System_administration_tools|System Administration Tools</yambe:breadcrumb>

hwclock

All systems maintain two different times. One is software clock which is maintained by OS when system is running. Other is hardware clock which runs even when system is powered off using CMOS cell. To look at current software clock we can use:

timedatectl

To look at current hardware clock use:

hwclock


Synchronize hardware clock with software clock

Software clock can be corrected using:

ntpdate -b <time-server>

Then same time can be copied to hardware clock using:

hwclock -w