As you all know, It is very easy to change Time Zone using Graphical Interface but this article will help you change TimeZone Using command line.
I have tested these steps on CentOS / RHEL and Ubuntu, Please comment down below if doesn’t work for you.
Please follow these steps as root or with root equivalent sudo rights:
- Check Time Zone using following command
[root@tejas-barot-linux-ahmedabad ~]# date
- First Remove symbolic link of current time zone
[root@tejas-barot-linux-ahmedabad ~]# rm /etc/localtime
- Let’s Change the Time Zone from Command line
[root@tejas-barot-linux-ahmedabad ~]# ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
Note : You can find your time zone under /usr/share/zoneinfo/