Files
cheatsheet-tldr/tldr/linux/timedatectl
2025-12-20 00:20:53 +00:00

34 lines
693 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# timedatectl
> Control the system time and date.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/timedatectl.html>.
- 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`