How to change the Timezone in CentOS 6

Written by Ian Carnaghan · 17 sec read >
  1. The timezone that’s active on your system is stored in the file /etc/localtime
  2. First make a backup of the existing localtime file
    mv /etc/localtime /etc/locatime.backup
  3. Now we create a link so that the timezone auto updates when updates come through
    ln -s /usr/share/zoneinfo/Africa/Johannesburg /etc/localtime
  4. In the above change Africa/Johannesburg to the appropriate timezone you need to use
  5. To test this change run the following command and see if the timezone updated.

Last Updated On April 07, 2018
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. Profile

Leave a Reply

Notify of