Page 1 of 1

Change Timezone in Red Hat and Centos Linux

Posted: Fri Nov 01, 2013 5:54 pm
by cah
1. Remove /etc/localtime (or move to a temp filename)

Code: Select all

# rm /etc/localtime
2. Link the Pacific timezone file to /etc/localtime

Code: Select all

# ln -s /usr/share/zoneinfo/US/Pacific /etc/localtime 

Change Timezone in Red Hat and Centos Linux - III

Posted: Mon Jun 08, 2015 4:28 pm
by cah
There's no /etc/sysconfig/clock in RHEL 7.x.
The symbolic link is sufficient according to some internet posts.
Or, admin can use 'timedatectl set-timezone' to set it.

Code: Select all

# timedatectl set-timezone America/Los_Angeles
Or,

Code: Select all

# timedatectl set-timezone US/Pacific