System Grab Bag

View all TLDR pages from Linux (or from all pages)

timedatectl

Control the system time and date. More information: https://manned.org/timedatectl.
  • Check the current system clock time:
    timedatectl
  • Set the local time of the system clock directly:
    timedatectl set-time "{{yyyy-MM-dd hh:mm:ss}}"
  • List available timezones:
    timedatectl list-timezones
  • Set the system timezone:
    timedatectl set-timezone {{timezone}}
  • Enable Network Time Protocol (NTP) synchronization:
    timedatectl set-ntp on
  • Change the hardware clock time standard to localtime:
    timedatectl set-local-rtc 1

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.