

For example, the /usr/share/zoneinfo/America/ directory contains American time zones.

Beneath that you can find directories specific to country or zone. The /usr/share/zoneinfo/ directory contains all the time zones. 1 root root 36 Dec 2 22:01 /etc/localtime -> /usr/share/zoneinfo/America/New_York The /etc/localtime file is a link to the original time zone file found under the /usr/share/zoneinfo directory. In this method, we will use /etc/localtime file to set the time zone for the system. Check the current time zone using the date command. In this method, we will set the system time zone from EST to CST.

Verify the new time zone using the date command. Now, I will set the system time zone as Central Standard Time (CST) by using America/Chicago. timedatectl list-timezones | grep -i chicago Chicago falls under Central Standard Time (CST).

You can filter the output based on the city name. Use the following command to list all time zones. You can see that my system has been configured with Eastern Standard Time (EST). Now, first, let’s check the date with the date command. The timedatectl command makes it easier for us to change the time zone in CentOS 8 / RHEL 8. In either case, this post will help you to change the time zone in CentOS 8 / RHEL 8. There are some possibilities you might have chosen the wrong time zone or you want to change the time zone post the installation of an operating system. The time zone is often set during the installation of an operating system.
