Ubuntu Set Timezone: Update Time on Ubuntu Server

ubuntu set timezone

Here is the simplest way to set up the timezone in Ubuntu the server using the Terminal. Just use below commands, we have explained all the commands.

Launch the Terminal

Usually I use putty to remotely access the terminal, once you are logged in the check the time date.

Check Time date Details

Use the below command it will give you the detailed output

timedatectl

Output will be like below

Local time: Jum 2020-08-21 09:30:04 +08   
           Universal time: Jum 2020-08-21 01:30:04 UTC   
                 RTC time: Jum 2020-08-21 01:30:04       
                Time zone: Asia/Kuala_Lumpur (+08, +0800)
System clock synchronized: yes                           
              NTP service: active                        
          RTC in local TZ: no

List All time Zones and Locate yours

timedatectl list-timezones
It will list all the time zones available I usually use Asia/Muscat which is my current time zone. If you want to locate a spacific time zone you can use below command 
timedatectl list-timezones | grep -i muscat

Set the timezone on Ubuntu Server

First you will need to unlink the existing timezone

sudo unlink /etc/localtime

Just type the below command considering the timezone is muscat

sudo ln -s /usr/share/zoneinfo/Asia/Muscat /etc/localtime

All set, your new time zone is now set to Asia Muscat

TODAY'S OFFERS

Gator Website Builder

Leave a Comment