tldr/pages/linux/timedatectl.md

24 lines
417 B
Markdown
Raw Normal View History

2016-01-03 12:45:57 +00:00
# timedatectl
> Control the system time and date.
2016-01-03 12:45:57 +00:00
- To check the current system clock time:
2016-01-03 12:45:57 +00:00
`timedatectl`
- To set the local time of the system clock directly:
2016-01-03 12:45:57 +00:00
`timedatectl set-time {{"yyyy-MM-dd hh:mm:ss"}}`
- To list available timezones:
2016-01-03 12:45:57 +00:00
`timedatectl list-timezones`
- To change timezones:
2016-01-03 12:45:57 +00:00
`timedatectl set-timezone {{timezone}}`
2016-04-19 11:58:09 +01:00
- To enable Network Time Protocol (NTP) syncing:
`timedatectl set-ntp on`