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 timezonetimedatectl 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
Related commands
- journalctlsystemd logs
- nltestDomain/DC diagnostics
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