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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store