{"id":2450,"date":"2019-02-18T12:44:45","date_gmt":"2019-02-18T11:44:45","guid":{"rendered":"https:\/\/www.techmedia.pl\/blog\/?p=2450"},"modified":"2021-06-05T00:43:31","modified_gmt":"2021-06-04T22:43:31","slug":"synchronize-system-clock-to-hardware-clock","status":"publish","type":"post","link":"https:\/\/www.techmedia.pl\/blog\/synchronize-system-clock-to-hardware-clock\/","title":{"rendered":"Synchronize system clock to hardware clock"},"content":{"rendered":"<p>To synchronize system clock to hardware clock in Linux do the following:<\/p>\n<pre>root@server:\/# <strong>hwclock -s<\/strong><\/pre>\n<p>or to do it parmanently:<\/p>\n<pre>root@server:\/# <code class=\"command\"><strong>timedatectl set-local-rtc true<\/strong><\/code><\/pre>\n<p>To show system clock:<\/p>\n<pre>root@server:\/# <strong>date<\/strong><\/pre>\n<p>To show hardware clock (RTC &#8211; real time clock):<!--more--><\/p>\n<pre>root@server:\/# <strong>hwclock<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To synchronize system clock to hardware clock in Linux do the following: root@server:\/# hwclock -s or to do it parmanently: root@server:\/# timedatectl set-local-rtc true To show system clock: root@server:\/# date To show hardware clock (RTC &#8211; real time clock):<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[161,40,106],"yst_prominent_words":[322,324,321,325,323,320],"_links":{"self":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts\/2450"}],"collection":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/comments?post=2450"}],"version-history":[{"count":5,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts\/2450\/revisions"}],"predecessor-version":[{"id":3099,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts\/2450\/revisions\/3099"}],"wp:attachment":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/media?parent=2450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/categories?post=2450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/tags?post=2450"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/yst_prominent_words?post=2450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}