Howtos / Articles

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

Replace “” with your NTP time server of choice.

Example output:

$ sudo ntpdate
 1 Jul 00:50:12 ntpdate[31843]: adjust time server 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

Share this howto article!
  • Facebook
  • Twitter
  • Reddit
  • email

Leave a Reply




You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>