How to change the timezone to IST in linux server ?


I want to change  my timezone  to  IST  Timezone   in my linux server ? How can we change the timezone  ?

jessicalola Supporter Asked on November 11, 2016 in Technology.
Add Comment
1 Answer(s)

Hello All,

you can change the timezone if you are only a root user.

1) check the present date and time.

[root@localhost]# date

2)Remove the localtime.

[root@localhost]# rm -f /etc/localtime

3) change the timezone

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

4)Edit the following file .

[root@localhost]# vi /etc/sysconfig/clock

save and exit.

5) set the current date and time
[root@localhost]#date date 110215132016 (month day hour min year)

6) see the date.

thomasjoshua Supporter Answered on November 11, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.