I wanted to change the timezone from Asia/Shanghai to Asia/Hong_Kong on RHEL5U5 in a non-interactive way.
After I executed the following command:
ln -sf /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime
I checked the timezone with the 'setup' command, and found the timezone is still Asia/Shanghai.
Did I change the timezone to Asia/Hong_Kong successfully? Why the 'setup' program still shows the former timezone? Is there any other way to change timezone in a non-interactive way other than relinking the /etc/localtime?