1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 00:42:08 +02:00
tldr/pages/linux/ntpdate.md
2021-10-09 23:10:26 -03:00

20 lines
453 B
Markdown

# 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}}`