timedatectl

Control the system time and date. More information: <https://manned.org/timedatectl>.

Install

All systems
curl cmd.cat/timedatectl.sh
Debian Debian
apt-get install systemd
Ubuntu
apt-get install systemd
Arch Arch Linux
pacman -S systemd
image/svg+xml Kali Linux
apt-get install systemd
CentOS
yum install systemd
Fedora
dnf install systemd
Windows (WSL2)
sudo apt-get update sudo apt-get install systemd
Raspbian
apt-get install systemd

Control the system time and date. More information: <https://manned.org/timedatectl>.

  • 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

© tl;dr; authors and contributors