How to change time zone in the Linux

Even though 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 a 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:\n

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

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

Leave a Reply 0

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