Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-20-2010, 04:13 AM   #1
Registered: Jun 2006
Location: Beijing
Posts: 60

Rep: Reputation: 1
how to update timezone after relinking /etc/localtime?


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?

Old 09-20-2010, 05:58 AM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614
Try logging out and back in
Old 09-20-2010, 11:17 AM   #3
Registered: Jun 2005
Posts: 202

Rep: Reputation: 35
Checkout 'Tips' below for RH

Be careful with hwclock. It can mess up your box on other OS's.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/localtime and /etc/timezone JockVSJock Linux - Newbie 1 05-01-2009 02:33 PM
timezone was changed after yum update montyleesam Linux - Server 1 04-22-2009 04:12 AM
updating legacy PPC RHEL 3.0 for timezone update issues Devilotx Linux - Server 1 03-09-2007 01:04 PM
Segmentation error when trying to update timezone files r0r0s Linux - Newbie 1 03-03-2007 07:25 PM
SuSE Linux 9.2: update timezone files r0r0s SUSE / openSUSE 1 03-01-2007 04:49 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration