Using Ubuntu 18.04.3 I am unable to get information about the NTP offset using timedatectl timesync-status
as I get a Unknown operation timesync-status
prompt.
Checking the service state with timedatectl
and systemctl status systemd-timesyncd.service
works just fine.
Is there another way to check the offset?
Although it may not be exactly what you have asked for, you can use the following method (no
sudo
is required):With the command above, you determine the time server
timesyncd
is synchronized to. In this example, it is169.254.169.254
.Then you can use the command
ntpdate -q
with this server like this:Note: You can install the
ntpdate
command, usingapt install ntpdate
.