2021-10-10 03:10:26 +01:00
|
|
|
# ntpdate
|
|
|
|
|
|
|
|
> Synchronize and set the date and time via NTP.
|
2024-05-28 17:25:30 +01:00
|
|
|
> More information: <https://manned.org/ntpdate>.
|
2021-10-10 03:10:26 +01:00
|
|
|
|
|
|
|
- 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}}`
|