Posted on Leave a comment

How to Change Linux Timezone


Issue the following command, it will display the current timezone. Take note of the current timezone.

date +%Z%z

Issue the following command to remove the symbolic link to the current timezone

sudo rm /etc/localtime

Issue the following command to create a symbolic link to the timezone of your choice. In this case, we are setting the timezone to Eastern Daylight Time.

sudo ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime

You can see the list of valid timezones to use issuing the following command.

sudo ls -l /usr/share/zoneinfo/

Navigate to your region to see the full path to the timezone.

Issue the same command to display the current timezone. The timezone should have changed from the original timezone to the new timezone.

date +%Z%z