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

🚀 Deploy ERPNext on Ubuntu VPS

This article provides a guide demonstrating how to deploy ERPNext on Ubuntu VPS. This guide…

1 day ago

Advantech AOM-2721 is now Ubuntu Certified

Canonical announces that the Advantech AOM-2721 is officially joining the list of Ubuntu Certified Hardware.…

7 days ago

Ruby and Rails Performance Roundup: The Backlog Edition

Yet again instead of tweets, a blog post. The backlog got out of hand -…

7 days ago

How to Deploy OpenProject on Ubuntu VPS

This article provides a guide demonstrating how to deploy OpenProject on Ubuntu VPS. What is…

7 days ago

Canonical integrates NVIDIA Nemotron 3.5 Lightning with Ubuntu for always-on AI agents

Canonical is pleased to announce that  NVIDIA’s newly introduced NVIDIA Nemotron 3.5 Lightning, an open,…

1 week ago

Xfwl4’s Second Preview Release

I’m pleased to announce the second preview release of xfwl4, Xfce’s Wayland compositor, version 4.21.1.…

1 week ago