JAEN

Linux

timedatectl

CautionShow/set time & NTP

timedatectl

Shows clock, timezone and NTP sync state. set-ntp true enables sync — start here for clock drift.

Examples

  • timedatectl set-timezone Asia/TokyoSet timezone
  • timedatectl set-ntp trueEnable NTP sync

Syntax

timedatectl [set-timezone TZ] [set-ntp BOOL]

Before you run it

Clock changes affect logs and Kerberos auth.

Used when you see

Clock drift / NTP failure
2
Check time and NTP state on Linux
See the whole flow →

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store