cmdxray / commands / timedatectl

What does timedatectl do?

query and change the system clock, time zone and NTP settings.

▸ Explain your own timedatectl command →

timedatectl examples, explained

$ timedatectl set-timezone Europe/Paris

  • timedatectlquery and change the system clock, time zone and NTP settings
  • set-timezoneset the system time zone
  • Europe/Parisan argument passed to the command

$ timedatectl status

  • timedatectlquery and change the system clock, time zone and NTP settings
  • statusshow the current time, time zone and NTP state

$ timedatectl set-ntp true

  • timedatectlquery and change the system clock, time zone and NTP settings
  • set-ntpenable or disable network time synchronisation
  • truean argument passed to the command

timedatectl subcommands

status — show the current time, time zone and NTP stateset-time — set the system clock to the given date/timeset-timezone — set the system time zonelist-timezones — list the known time-zone namesset-ntp — enable or disable network time synchronisationset-local-rtc — store the hardware clock in local time (vs UTC)timesync-status — show details of the running time-sync service

timedatectl flags & options

--no-pagerdo not pipe output into a pager
--adjust-system-clockwith set-local-rtc, also update the system clock

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.