Verify new settings by typing the following two commands: date Ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
Type the following commands as root: cp /etc/localtime /root/old.timezone You need to use the ln command to set timezone on Centos 6. Verify new settings by typing the following two commands: # dateĬhange the current timezone in CentOS 6 and older In this example, set timezone to America/Chicago # timedatectl set-timezone America/Chicago The syntax is as follows to set timezone and need to run as root user: # timedatectl set-timezone time_zone #*** Grep possible Asian timezones ***# timedatectl list-timezones | grep Asia To find list of all available time zones, run: # timedatectl list-timezones Type the date command or the ls command: $ dateĪnother option is to type the following command on systemd based distro such as CentOS 7 to see timezone along with the grep command and timedatectl command: timedatectl How do I see the current time zone on CentOS Linux?
In my case I used the following National Time Server of Bangladesh: server
Let’s install NTP service first: yum install ntpĬonfigure NTP services by updating the following section (only if appropriate): nano /etc/ntp.confĪnd by commenting on the sections: # Use public servers from the project.