Categories: TutorialsUbuntu

Synchronize the time on Ubuntu from a NTP Server

To synchronize the time on a Ubuntu computer, with the time from a NTP server, you can simply run the following command:

sudo ntpdate 0.pool.ntp.org

Replace “0.pool.ntp.org” with your NTP time server of choice.
Example output:

$ sudo ntpdate 0.pool.ntp.org
 1 Jul 00:50:12 ntpdate[31843]: adjust time server 12.34.56.78 offset -0.001309 sec
$

Your time will now be synchronized to the time from the NTP server.
You can put this in a cron job to periodically update the time, to ensure its always up to date. This can be important when looking over logs. The right time makes things a lot easier.
If

Sponsored
you need to change your timezone, please check out:
Change the Timezone in Ubuntu
Sponsored

The post Synchronize the time on Ubuntu from a NTP Server appeared first on Networking HowTos.

Ubuntu Server Admin

Recent Posts

Join Canonical in Brazil at Dell Technologies Forum São Paulo

Canonical is excited to be a part of the Dell Technologies Forum in São Paulo…

4 days ago

6 facts for CentOS users who are holding on

In 2020, it was announced that CentOS 7 would reach end of life (EoL) by…

4 days ago

What is Ubuntu used for?

The launch of Ubuntu in 2004 was a step-change for everyday users and developers everywhere.…

5 days ago

Ubuntu Weekly Newsletter Issue 862

Welcome to the Ubuntu Weekly Newsletter, Issue 862 for the week of October 13 –…

5 days ago

New Ubuntu Community Council 2024

Merlijn writes: I’m happy to announce the new 2024 Ubuntu Community Council! Heather Ellsworth (~hellsworth1)…

7 days ago