How to change time zone in RHEL 7

change time zone in RHEL 7

How to change time zone in RHEL 7

Way to change a timezone on CentOS 7 RHEL7  Linux server 

You should use "timedatectl" to change time zone in RHEL-7

Syntax :- 
$ timedatectl set-timezone {timezone}
E.g.
$ timedatectl set-timezone America/Los_Angeles


To List all available time zones 

[root@amitmaheshwari ~]# timedatectl list-timezones

You can use grep to search for a specific city or country 

[root@amitmaheshwari ~]# timedatectl  list-timezones | grep  Tokyo
Asia/Tokyo

Check current timezone execute "date" command to check 

[root@amitmaheshwari ~]# date
Mon Mar  2 01:10:15 EST 2020

Let's change the timezone:
[root@amitmaheshwari ~]# timedatectl set-timezone Asia/Tokyo


To confirm that you have successfully changed your timezone run date command again:

[root@amitmaheshwari ~]# date
Mon Mar  2 15:13:13 JST 2020


You can find time zones under /usr/share/zoneinfo (as mentioned above)