Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am searching for a command-line that allows me to check the system time deviance to a NTP server specified on the command-line. I don't want to change/adapt the system time - only displays the deviance.

Nice would be an text-mode display as it is used by the windows tool w32tm.exe:

14:09:06 d:+00.0331970s o:+00.0046684s [                           *                           ]
14:09:08 d:+00.0331985s o:+00.0050307s [                           *                           ]
14:09:10 d:+00.0331980s o:+00.0050342s [                           *                           ]
14:09:12 d:+00.0341736s o:+00.0041995s [                           *                           ]
14:09:14 d:+00.0341737s o:+00.0048171s [                           *                           ]
14:09:16 d:+00.0331742s o:+00.0043771s [                           *                           ]
14:09:18 d:+00.0341740s o:+00.0045760s [                           *                           ]

What program should I use?

share|improve this question
up vote 6 down vote accepted
$ ntpdate -q pool.ntp.org
server, stratum 2, offset 0.007942, delay 0.07298
server, stratum 2, offset -0.001173, delay 0.05101
server, stratum 2, offset -0.003886, delay 0.04689
share|improve this answer

ntpdate is going away. you can do the same thing moving forward with sntp

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.