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 you need to change your timezone, please check out:
Change the Timezone in Ubuntu

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

Ubuntu Server Admin

Recent Posts

AMI and Canonical announce partnership

The collaboration makes it easy to boot directly into Ubuntu from AMI’s UEFI firmware solutions…

1 week ago

The $8.8 trillion advantage: how open source software reduces IT costs

Open source software is known for its ability to lower IT costs. But in 2025,…

1 week ago

Open design: the opportunity design students didn’t know they were missing

What if you could work on real-world projects, shape cutting-edge technology, collaborate with developers across…

1 week ago

Anbox Cloud 1.28.0 is now available!

Enhanced Android device simulation, smarter diagnostics, and OIDC-enforced authentication The Anbox Cloud team has been…

1 week ago