Home / How to / Changing timezone in Linux

Changing timezone in Linux

This is something I need quite often when I setup a new VPS or Virtual Machine in the cloud. I use multiple cloud infrastructures that includes Azure, Amazon AWS, DigitalOcean, CloudatCost and InterServer. All of them has pre-set Virtual Machine or ISO that you can simply deploy using a few clicks. Once the machines are up and running, they are either running on a US time zone or using UTC. It creates problem for me when I try to look up something in the lost and often I find it hard to relate my ConfigServer Security and Firewall or Nginx logs with local time. Changing timezone in Linux is pretty simple and it doesn’t affect any running applications.

First become root using sudo command

user@kali:~# sudo -s

Then simply run the following command to reconfigure your timezone locale

root@kali:~# dpkg-reconfigure tzdata
user@ubuntu:~# sudo dpkg-reconfigure tzdata

If you don’t want to become root, then you can use this command with sudo as well.

Changing timezone in Linux - blackMORE Ops -2

This works for Ubuntu, Debian, Kali Linux or anything that is a Debian or Ubuntu variant.

Then it’s select the right Geographic Area such as Australia.

Changing timezone in Linux - blackMORE Ops -3

and TimeZone area such as Sydney.

Changing timezone in Linux - blackMORE Ops -4

That’s it. Once done, your terminal should show default update current time zone.


  1. can’t we change the kali timezone from the settings of kali

  2. The tzdata approach didn’t work for me … and I am actually FROM Australia, still left me on UTC.

    I remedied it from Settings in Kali 17.1 rolling, using Stystem Date & Time, and manually adjusting, sticks after a reboot


Leave a Reply

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