ntpdate
Synchronize and set the date and time via NTP. More information: https://manned.org/ntpdate.
- Synchronize and set date and time:
sudo ntpdate
- Query the host without setting the time:
ntpdate -q
- Use an unprivileged port in case a firewall is blocking privileged ports:
sudo ntpdate -u
- Force time to be stepped using
settimeofdayinstead ofslewed:
sudo ntpdate -b
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
