Showing posts with label timezone in centos. Show all posts
Showing posts with label timezone in centos. Show all posts

Thursday, 26 September 2013

How to change time zone in centos

Generically, I use this
Change directory to /etc
?
1
[root@testbed ~]# cd /etc
Now create a symbolic link (aka symlink) to the timezone e.g. Asia/Karachi (for Pakistan standard time)
?
1
2
3
[root@testbed etc]# ln -sf /usr/share/zoneinfo/Asia/Karachi localtime
[root@testbed etc]# date
Mon Jan 16 19:26:52 PKT 2012
Please note that the timezone is following a directory-structure so if you want EST time, you should use