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

What’s new in security for Ubuntu 26.10?

Ubuntu 26.10 “Stonking Stingray” arrives at a time when AI tools are accelerating vulnerability discovery.…

2 days ago

Devpack for Rust: Zero to Rust in seconds

One of the best things about Rust is how easy it is to get started.…

4 days ago

Confidential computing in the real world: finding your use case

Confidential computing is essential when an organization needs to process sensitive data on infrastructure where…

4 days ago

Android™ belongs in your CI/CD pipeline

How on-demand Android environments turn validation into a repeatable pipeline stage In the first article,…

1 week ago

How to Install and Optimize PostgreSQL on Ubuntu 26.04 for High Performance Web Apps

PostgreSQL is a powerful, open-source object-relational database management system known for its reliability, feature robustness,…

1 week ago

Realtime transaction fraud detection – with an LLM?

Conversational AI with a chatbot is great for drafting emails or debugging code,  but it’s…

1 week ago