Change Time Zone on CentOS and RHEL

Windows Articles

How to install WordPress with Nginx on Ubuntu 20.04?

Hi, folks. In this post, we will help you install Wordpress with Nginx on Ubuntu 20.04. It's a lot easier than you...

Electron 9.0 available

News has arrived that many developers are going to love. And that is that Electron this great cross-platform application framework has released...

How to install SQLite on Ubuntu 20.04 / 18.04?

There is a wide variety of database managers today. Of all of them, MySQL continues to be the most prominent within open source. On...

Deploy a Jitsi Meet server with Docker

Hi, folks. In this very short tutorial, I will show you how to deploy a Jitsi Meet server using Docker. This indicates...

How to Create Apache Virtual Hosts on Ubuntu 20.04 /Debian 10.4

Maybe you want to run more then1 domain on the same Server, why buying another server while its possible to run...

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 –

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!

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to install WordPress with Nginx on Ubuntu 20.04?

Hi, folks. In this post, we will help you install Wordpress with Nginx on Ubuntu 20.04. It's a lot easier than you...

Electron 9.0 available

News has arrived that many developers are going to love. And that is that Electron this great cross-platform application framework has released...

How to install SQLite on Ubuntu 20.04 / 18.04?

There is a wide variety of database managers today. Of all of them, MySQL continues to be the most prominent within open source. On...

Deploy a Jitsi Meet server with Docker

Hi, folks. In this very short tutorial, I will show you how to deploy a Jitsi Meet server using Docker. This indicates...

How to Create Apache Virtual Hosts on Ubuntu 20.04 /Debian 10.4

Maybe you want to run more then1 domain on the same Server, why buying another server while its possible to run...