Difference between revisions of "Hwclock"
From Notes_Wiki
m |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System administration tools]] > [[Hwclock|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: | 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: | ||
Line 31: | Line 30: | ||
Most of this information is learned from https://docs.fedoraproject.org/en-US/Fedora/22/html/System_Administrators_Guide/ch-Configuring_the_Date_and_Time.html | Most of this information is learned from https://docs.fedoraproject.org/en-US/Fedora/22/html/System_Administrators_Guide/ch-Configuring_the_Date_and_Time.html | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System administration tools]] > [[Hwclock|hwclock]] |
Latest revision as of 11:40, 28 July 2022
Home > CentOS > CentOS 6.x > System administration tools > 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
Other way round to copy hardware clock to os clock use:
hwclock -s
Most of this information is learned from https://docs.fedoraproject.org/en-US/Fedora/22/html/System_Administrators_Guide/ch-Configuring_the_Date_and_Time.html
Home > CentOS > CentOS 6.x > System administration tools > hwclock