1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 01:24:55 +02:00
tldr/pages/linux/timedatectl.md
2020-10-04 18:33:38 +01:00

23 lines
417 B
Markdown

# timedatectl
> Control the system time and date.
- 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`