How to change time zone in Linux

Posted: October 4, 2016 in System Config

[root@test ~]# date

Tue Oct 4 10:05:15 EEST 2016

[root@test ~]# ll /etc/localtime

lrwxrwxrwx 1 root root 35 Oct 4 10:04 /etc/localtime -> /usr/share/zoneinfo/Europe/Helsinki

[root@test zoneinfo]# cd /usr/share/zoneinfo/

[root@test zoneinfo]# unlink /etc/localtime

[root@test zoneinfo]# cd Asia/

[root@test Asia]# pwd

/usr/share/zoneinfo/Asia

[root@test Asia]# ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime

[root@test Asia]# date

Tue Oct 4 12:40:00 IST 2016

[root@test Asia]# ll /etc/localtime

lrwxrwxrwx 1 root root 32 Oct 4 12:39 /etc/localtime -> /usr/share/zoneinfo/Asia/Kolkata

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s