Linux : Changing Timezone on Linux
- General
Linux : Changing Timezone on Linux
Changing Timezone on linux
1. First search for the available time zone by the below command.
1 |
timedatectl list-timezones | grep -i Asia |
2. Then unlink the current timezone
1 |
sudo unlink /etc/localtime |
3. Now set the new timezone. The syntax for setting the new time zone is as below
1 2 3 4 |
sudo ln -s /usr/share/zoneinfo/[zone/timezone] /etc/localtime For example sudo ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime |
4. Now check the DateTime using the date command.
1 2 |
date Tue May 28 10:52:00 IST 2019 |
Related content
Auriga: Leveling Up for Enterprise Growth!
Auriga’s journey began in 2010 crafting products for India’s