timedatectl

timedatectl beheert datum, tijd en tijdzone via systemd.

Basisgebruik

timedatectl
timedatectl set-timezone Europe/Amsterdam

Veelgebruikte commando's

CommandoBeschrijving
statusHuidige tijd- en tijdzone-instellingen
set-timezone zoneTijdzone instellen
list-timezonesBeschikbare tijdzones
set-ntp true/falseNTP in- of uitschakelen
set-time "JJJJ-MM-DD UU:MM:SS"Tijd handmatig instellen

Voorbeelden

Tijdzone instellen:

sudo timedatectl set-timezone Europe/Amsterdam

Tijdzones doorzoeken:

timedatectl list-timezones | grep Europe
timedatectl list-timezones | grep Amsterdam

NTP inschakelen:

sudo timedatectl set-ntp true

Handmatig tijd instellen (NTP eerst uitschakelen):

sudo timedatectl set-ntp false
sudo timedatectl set-time "2024-03-15 14:30:00"

Status controleren:

timedatectl status
# System clock synchronized: yes
# NTP service: active

Tip

Na het wijzigen van de tijdzone is de wijziging direct van kracht — geen herstart nodig. Controleer met date of de nieuwe tijdzone correct wordt getoond.

systeembeheer