Howtos / Articles

Update time from network time server on Linux

To update the time on a Linux installation, simply run the following command:

$ sudo ntpdate <time server address>

Replacing <time server address> with a valid NTP time server address.


$ sudo ntpdate

If you only want to query the time, without updating your system, use the following command:

$ ntpdate -q

To update the time, without outputting any log information to standard output (handy for a cron job), use the following command:

$ sudo ntpdate -s

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>