Timedatactl Command

  • Display the current time and date
    timedatectl status
  • View current timezone
    timedatectl |grep Time
  • View all available timezones
    timedatectl list-timezones
  • Set local timezone
    timedatectl set-timezone "America/New_York"
  • Set time
    timedatectl set-time 15:59:03
  • Set date
    timedatectl set-time 20181008
  • Set both date and time
    timedatectl set-time '2018-10-09 09:10:30'
  • Set hardware clock to coordinated universal time (UTC)
    timedatectl set-local-rtc 0
  • Set hardware clock to local timezone
    timedatectl set-local-rtc 1
  • Synchronization with remote NTP server
    timedatectl set-ntp true
  • Disable NTP time Synchronization
    timedatectl set-ntp false
Written on October 9, 2018