I want to monitor the time drift on my workstation. How can I compare my local time to a timeserver like pool.ntp.org and show the difference?
Asked
Active
Viewed 2.0k times
1 Answers
8
Old, Outdated Answer
If you run ntpdate -q pool.ntp.org
, it will show you the difference between your time and the time server.
strong text
ntpdate
has been deprecated for quite some time, and as of this edit (2017) it may no longer be available on new distributions.
clockdiff _server_
will show the clock difference and has been available since 12.04 LTS. See the man page for clockdiff.

jwernerny
- 1,818
ntpdate
is a shell script that gives the following for the above command:Usage: /etc/init.d/ntpdate {start|stop|restart|reload|force-reload}
. Any alternatives? – Roger Dueck Aug 15 '17 at 20:57ntpdate
has been deprecated for quite a while. The suggestion is to usentpd
instead. – jwernerny Aug 17 '17 at 15:32clockdiff
either, and I don't see any way to makentpd
give the one-time clock difference that the deprecatedntpdate
did. – Roger Dueck Aug 17 '17 at 16:52