How to update NTP to sync clock on Linux
If you need to sync the clock on Linux using the central NTP clock service, you can do the following:
sudo service ntp stop
sudo ntpd -gq
sudo service ntp start
The -gg flags do the following:
- Tell
gflag tells the NTP Daemon to correct the time regardless of the offset - The
qflag tells it to exit immediately after setting the time