# cd /usr/share/zoneinfo/ # ls Africa Canada GB Indian Mexico ROK iso3166.tabĪmerica Chile GB-Eire Iran NZ Singapore posixĪntarctica Cuba GMT Israel NZ-CHAT Turkey posixrulesĪrctic EET GMT+0 Jamaica Navajo UCT rightĪtlantic EST5EDT GMT0 Kwajalein PST8PDT UTCĪustralia Egypt Greenwich Libya Pacific Universal Display Date and Time in Linux # dateĪnd its output Sat Mar 15 03:14: Change Timezone in Linuxįist, we are going to get a list of timezone that came with Linux. Date command can print, or set date and time of your linux system. To check or show the current date, and time of your Linux system, you can use date command. Linux system normally keep their timezone in /etc/localtime. There are a few different way to change date, time, and timezone on centos 6 via the command line terminal. This article will properly work with other Linux distributions like Ubuntu, Linux Mint, Fedora or Redhat since the way Linux date, time, and timezone work all the same in Linux server.
I will show you how to change date and time on centos 6 operating system in this article.
It would be easier for me to manage my server if it has the same time and date. It’s hard to read logs with different time zone from your server, so I decided to change the timezone of my server to the my current timezone. When I was tweaking one of my linux server, I found out that the time of my server isn’t match with my local time.