System Grab Bag

View all TLDR pages from Linux (or from all pages)

ntpdate

Synchronize and set the date and time via NTP. More information: http://support.ntp.org/documentation.
  • Synchronize and set date and time:
    sudo ntpdate {{host}}
  • Query the host without setting the time:
    ntpdate -q {{host}}
  • Use an unprivileged port in case a firewall is blocking privileged ports:
    sudo ntpdate -u {{host}}
  • Force time to be stepped using settimeofday instead of slewed:
    sudo ntpdate -b {{host}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.