16 C
Texas

Change Time Zone on CentOS and RHEL

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 –

- Advertisement -

Run the following command –

timedatectl

This will show the current time and time zone.

Now, run the following command –

timedatectl list-timezones

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

Enjoy!

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article