Setup Timezone in Ubuntu & Sync your clock
Back to Blog

Setup Timezone in Ubuntu & Sync your clock

November 6, 20191 min read0 comments

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
timedatectl

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

Enjoyed this article?

Show your appreciation with a clap

0claps
Share this article
SK
Written by

Sohaib Khan

View all posts

You might also like

View all

Comments (0)

No comments yet. Be the first to comment!