How to list and set the timezone on CentOS linux

You can list timezones on the system with the following command:

timedatectl list-timezones

Once you identify the desired timezone … you can set the system timezone with the following command:

sudo timedatectl set-timezone <desired_time_zone>

Example:

$ timedatectl list-timezones
...
America/Chicago
...
$ sudo timedatectl set-timezone America/Chicago
$ ls -l /etc/localtime
lrwxrwxrwx. /etc/localtime -> ../usr/share/zoneinfo/America/Chicago

You may also like...