Nocser Technology | Main Page
Please Login or Register

Knowledgebase

Change Timezone and set time & date for CentOS

Change Timezone

cd /usr/share/zoneinfo/Asia/

cp /etc/localtime /etc/localtime-ori

cp Kuala_Lumpur /etc/localtime

 

Set time and date

date MMDDhhmmYYYY

Example:
date 043017212008

(that is the time of my posting)

MM - Two digit month number
DD - Two digit date
hh - Two digit 24 hour system hour
mm - Two digit minute
YYYY - Four digit year code

 

If conmmand above doesn't work, do the following

cd /usr/share/zoneinfo/Asia

ln -sf Kuala_Lumpur /etc/localtime

 

Sync your time

ntpdate pool.ntp.org

 

Confirm your date

date

 

If ntp is not install, you may run this to install ntp

yum install ntp



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Net Install CentOS (Views: 496)
Subnet Reference (Views: 898)

Powered by WHMCompleteSolution

Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter