Changing the timezone on Linux is easy. The timezone within Linux is set by a symbolic link located in the /etc directory which needs to be changed to the new timezone. Once this is changed the time needs to be synced to a time server. I recently moved from Las Vegas to Louisville and had not changed a Linux server to the new timezone. Follow the steps below and the new timezone will be set and updated.
- Backup Current Timezone: Issue the below command on your server to backup the current timezone information just in case there are issues.
- cp -p /etc/localtime /etc/localtime.bak