From bc872a59659980a534f242adcce44697ae7c1c0d Mon Sep 17 00:00:00 2001 From: EduardBaer Date: Sun, 10 Oct 2021 04:10:26 +0200 Subject: [PATCH] ntpdate: add page (#6856) --- pages/linux/ntpdate.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/linux/ntpdate.md diff --git a/pages/linux/ntpdate.md b/pages/linux/ntpdate.md new file mode 100644 index 000000000..faf68c452 --- /dev/null +++ b/pages/linux/ntpdate.md @@ -0,0 +1,20 @@ +# ntpdate + +> Synchronize and set the date and time via NTP. +> More information: . + +- 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}}`