brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: timedatectl timesync-status shows which server your clock syncs with

Linux
~/tips/tip-timedatectl-timesync-status

timedatectl timesync-status

See the NTP server, offset and poll interval of systemd-timesyncd

timedatectl tells you whether the clock is synchronised, but not where the time comes from or how far off it was.

On a system that uses systemd-timesyncd, ask for the details:

timedatectl timesync-status

The output shows the NTP server in use, its stratum, the poll interval, the measured offset and jitter, and a packet count. A small offset of a few milliseconds is healthy. Add --monitor to keep the view updating, and stop it with Ctrl+C.

The basic timedatectl status shows System clock synchronized: yes once a sync worked. The timesync-status view helps when that says no and you need to see whether a server is reachable at all.

A caveat: the command only works with systemd-timesyncd. If the machine runs chrony or ntpd instead, it reports that the service is not active, and you use chronyc tracking for chrony.

Further reading: timedatectl(1) man page

More Linux tips a2query -m rewrite renice -n 10 -p 4242 cat config.yml | xsel -ib xvfb-run -a your-program --some-flag dpkg --get-selections > packages.txt All Linux tips (261) All topics

Link