In this tutorial, I will change the 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 the Linux time zone 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 making a symbolic
$ sudo rm -f /etc/localtime $ sudo ln -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime