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
timedatectl set-timezone {timezone}
- Enable Network Time Protocol (NTP) synchronization:
timedatectl set-ntp on
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).