Skip to content

Commit b563949

Browse files
committed
unix/linux: Synchronize hardware clock with an NTP server
1 parent 61219d0 commit b563949

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

unix/linux/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ <h2><span class="header-section-number">3.4</span> Force releasing the swap spac
9191
<p>(<strong>Warning:</strong> To run this command safely, freely available RAM is assumed to be sufficient; otherwise, the system may kill some processes to make room.)</p>
9292
<pre><code># swapoff -a &amp;&amp; swapon -a</code></pre>
9393
</section>
94+
<section id="synchronize-hardware-clock-with-an-ntp-server" class="level2">
95+
<h2><span class="header-section-number">3.5</span> Synchronize hardware clock with an NTP server</h2>
96+
<pre><code># ntpd -qg
97+
# hwclock --systohc</code></pre>
98+
</section>
9499
</section>
95100
<section id="sysv-init" class="level1">
96101
<h1><span class="header-section-number">4</span> SysV init</h1>

unix/linux/src.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ Swapping generally downgrades the overall performance; it is sometimes good to m
6262

6363
# swapoff -a && swapon -a
6464

65+
## Synchronize hardware clock with an NTP server
66+
67+
# ntpd -qg
68+
# hwclock --systohc
69+
6570

6671

6772
# SysV init

0 commit comments

Comments
 (0)