How to change your Linux CentOS Server timezone

Timezone data (tzdata) is stored in /usr/share/zoneinfo. To change your CentOS server’s timezone, simply run the following command based up on the examples below: Example of changing the timezone to Melbourne,Australia:

yes | cp -rf  /usr/share/zoneinfo/Australia/Melbourne /etc/localtime
  • this will overwrite your actual local-time configuration.