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 ofslewed
:sudo ntpdate -b {{host}}
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.