How to change time zone in Linux OS

Even thought there are several ways of doing this, this is by far the quickest and easiest way of changing the time zone on your Linux installation. Linux looks into /etc/localtime to determine time zone and local time. Here you can place either time zone file, or just create a symbolic link. Remember that time zone files are located under /usr/share/zoneinfo/

To change the time zone, simply do the following:

# rm -fr /etc/localtime
# ln -s /usr/share/zoneinfo/Europe/Sarajevo /etc/localtime
# reboot

In this example I’ve used Sarajevo as reference for time zone. Replace it with either your city or nearest larger city in your country.

Leave a Reply

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

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