Linux Articles

How To Change Timezone And Date In Centos Server

                            How To Change Timezone And Date In Centos Server

Description:

Here is the simple article to change the current Timezone and date.

Steps:

In general while installing Centos operating system in the server Timezone and date wizard will come.Based on location we can update the zone.Date Centers setup server according to the local timezone but client require the other location timing.For this case need to change the timezone and date also.Simple steps to change the Timezone and date in the server.

How To Change Timezone And Date In Centos Server
– Login to the server using root login details.

– In first case change the Timezone

– Go to the below path ,

cd /usr/share/zoneinfo/Asia/

–  Take the Copy the original localtime to some where ,

cp /etc/localtime /etc/localtimebak

– Now change the Timezone location using the below command.Find the timezones and update it,

$cd /usr/share/zoneinfo/Asia/
$ll
$cp Calcutta /etc/localtime

– In second step change the date and time using the below command,

$date MMDDhhmmYYYY  
MM- enter month in Two digit ex: 02
DD- enter the date in two digit ex: 06
hh- enter hours in 24hr format ex:03
mm- Enter the minites two digit ex:56
YYYY- enter the year in four digit ex:2014

Tags:Centos,Server time,Timezone,Timezone change,Centos configuration,Linux tutorials,Knowledge Articles,Tech News.

About the author

admin

Add Comment

Click here to post a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.