How to change the timezone on Linux:
In the Linux machine, to setup the timezone we need to create a symlink as /etc/localtime to the time zone file in the system time zone directory. Follow the simple steps below to do that :-
Create a symlink to the file localtime in the etc directory as below :-
———————————————————————————–
To set the timezone to US Central use the command below :-
# ln -sf /usr/share/zoneinfo/US/Central /etc/localtime
[root@linux] date
Mon Jul 8 18:01:47 CDT 2013
OR if you want to set it to IST (Asia/Calcutta):-
# ln -sf /usr/share/zoneinfo/Asia/Calcutta /etc/localtime
[root@linux] date
Tue Jul 9 04:31:35 IST 2013
To verify the timezone, use the ‘date’ command to verify that your timezone has changed.
]]>