1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 16:42:10 +02:00
tldr/pages/linux/timedatectl.md
2016-04-19 20:58:09 +10:00

23 lines
417 B
Markdown

# timedatectl
> Control the system time and date.
- To check the current system clock time:
`timedatectl`
- To set the local time of the system clock directly:
`timedatectl set-time {{"yyyy-MM-dd hh:mm:ss"}}`
- To list available timezones:
`timedatectl list-timezones`
- To change timezones:
`timedatectl set-timezone {{timezone}}`
- To enable Network Time Protocol (NTP) syncing:
`timedatectl set-ntp on`