Technology Insights

How to Change Timezone on Linux

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.

  1. Backup Current Timezone: Issue the below command on your server to backup the current timezone information just in case there are issues.

    1. cp -p /etc/localtime /etc/localtime.bak

Technology Insights

Install and Configure NTP on CentOS 5.X

This is just a brief howto about installing and configuring NTPD (Network Time Protocol Daemon) on a Linux server which in this case is specifically NTPD. First we will install ntpd, then update the current time on the server, configure ntpd to restart on server boot, and then start ntpd.

  1. Install NTPD: Run the below command to install ntpd via yum.
  2. bash

    1. [root@server ~]# yum install ntp