1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 13:02:08 +02:00
tldr/pages/linux/timedatectl.md
Joel Tony 2506f957c1
timedatectl: Add command to set hardware clock to use localtime (#8605)
* Add GNU Octave page

* Change link to documentation

* Change hwclock to localtime

* Delete octave.md

* Update timedatectl.md
2022-10-01 19:24:12 +00:00

559 B

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