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


  3. tnx u man

    it worked fine.. :X

  4. thanks, worked great

  5. it work, thanks!

Leave your solution or comment to help others.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from blackMORE Ops

Subscribe now to keep reading and get access to the full archive.

Continue reading

Privacy Policy on Cookies Usage

Some services used in this site uses cookies to tailor user experience or to show ads.