ntpdate: add page (#6856)

beep
EduardBaer 2021-10-10 04:10:26 +02:00 committed by GitHub
parent 30d336163d
commit bc872a5965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

20
pages/linux/ntpdate.md Normal file
View File

@ -0,0 +1,20 @@
# 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}}`