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 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