In this tutorial, I will change timezone in Linux by command line. How to change the
- Location of the local time file in Linux is /etc/localtime.
- Timezone files are located in /usr/share/zoninfo/
Now, I Change timezone in Linux with Two methods.
Method 1: I will copying from /usr/share/zoneinfo/Asia/Ho_Chi_Minh to /etc/localtime
$ sudo cp /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime
Method 2: I will delete and make a symbolic Linux from /
$ sudo rm -f /etc/localtime
$ sudo ln -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime
Conclusion
You