1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 14:42:19 +02:00
tldr/pages/linux/ntpdate.md
Alejandro Cervera 2862a8c713
pages/linux/*: replace broken links (#12850)
Co-authored-by: spageektti <git@spageektti.cc>
2024-05-28 18:25:30 +02:00

20 lines
443 B
Markdown

# ntpdate
> Synchronize and set the date and time via NTP.
> More information: <https://manned.org/ntpdate>.
- 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}}`