Setup Timezone in Ubuntu & Sync your clock

When you install a brand new *NIX server, We need to make sure your time zone is accurate, At least I do – I am in EST NY Time zone, I will show you how to set this up.

I am assuming you’ve root shell access

sudo timedatectl set-timezone America/New_York
sudo timedatectl set-ntp on

Above command will show you , You’re exact server time

root@NS1:~# timedatectl<br>
               Local time: Tue 2019-11-05 22:26:42 EST<br>
           Universal time: Wed 2019-11-06 03:26:42 UTC<br>
                 RTC time: Wed 2019-11-06 03:26:43<br>
                Time zone: America/New_York (EST, -0500)<br>
System clock synchronized: yes<br>
              NTP service: active<br>
          RTC in local TZ: no

Leave a Reply

Your email address will not be published. Required fields are marked *