Time zone is one of the most important and basic system settings that have to CORRECTLY set. Without a proper time zone, lots of your online services and apps aren’t going to work or even allow you to access the service at all.
CentOS and RHEL are the enterprise Linux distros we got at the higher ends. As they’re used for higher level works, you must make sure that the system is configured with the correct time zone.
Let’s find out on changing and fixing the time zone of your CentOS and RHEL.
Changing time zone
Fire up a terminal –
Run the following command –
This will show the current time and time zone.
Now, run the following command –
This will show you a HUGE list of available time zones. If you want to show the time zones for a specific area, use “grep”.
timedatectl list-timezones | grep Asia
Once you’ve identified your time zone, it’s TIME to bake it into your system!
timedatectl set-timezone Asia/Dhaka
Verifying the result
Run the following commands –
date ls -l /etc/localtime