Where to start First steps track · 15 stages
Linux Labs

timedatectl — time, time zone, and synchronization

cheat sheet · Ubuntu 24.04 · systemd https://lab.dimsanych.ru/en/wiki/timedatectl/

Cheat sheet

  • timedatectl time, time zone, sync status
  • sudo timedatectl set-timezone Europe/Moscow change the time zone
  • sudo timedatectl set-ntp true enable NTP synchronization
  • timedatectl timesync-status server, delay, offset
  • chronyc tracking the same with chrony
  • date -u current time in UTC

Options

set-time requires auto-synchronization to be off: with set-ntp true active, the service immediately reverts the time, and a manual change will look like it didn't take effect. set-local-rtc switches the hardware clock's format between UTC (correct for a Linux server) and local time (only needed for dual-booting with Windows).

Loading…