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 26.10 “Stonking Stingray” arrives at a time when AI tools are accelerating vulnerability discovery.…
One of the best things about Rust is how easy it is to get started.…
Confidential computing is essential when an organization needs to process sensitive data on infrastructure where…
How on-demand Android environments turn validation into a repeatable pipeline stage In the first article,…
PostgreSQL is a powerful, open-source object-relational database management system known for its reliability, feature robustness,…
Conversational AI with a chatbot is great for drafting emails or debugging code, but it’s…