Force NTP Time Update on Linux
Imagine this: you created the /etc/ntp.conf file, enabled and started the ntpd service, and… the system time is still off. Is there a way to force time sync with the NTP server? It must be your lucky day. All you have to do is to connect to your box as root and run the following command:
sntp -r pool.ntp.org
ntpdate -u pool.ntp.org
The “pool.ntp.org” is a public NTP service. You can replace this with the fully-qualified DNS name or IP address of your own NTP server. Keep in mind that this command will sync date and time immediately – not gradually. So if you have some time-sensitive applications running, maybe you should schedule a brief outage to restart these applications.