How to change the Timezone in CentOS 6

H

How Can We Help?

  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.
    date

About the author

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.

About Author

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.

Follow Me