Tech Journal Back to Tech Journal

How do I premenantly change the timezone manually in RedHat Linux?

The main places to check are /etc/localtime and /usr/share/zoneinfo. If the file /etc/localtime exists, that's probably the main file. So you need to replace it with the correct file from /usr/share/zoneinfo, and also create a symlink from the timezone file to /usr/share/zoneinfo/localtime. In a nutshell:

# rm /usr/share/zoneinfo/localtime
# ln -s /usr/share/zoneinfo/Israel /usr/share/zoneinfo/localtime
# rm /etc/localtime
# ln /usr/share/zoneinfo/Israel /etc/localtime

Replace Israel with the timezone you want. Please note that creating a soft link /etc/localtime doesn't always seem to work, so I specified a hard link above.

BTW, if you find yourself without an accurate time, but with a java-capable browser, you can go to The U.S.'s Time website, which I forced into reporting Israeli time (though daylight savings time is usually off).

Last updated on 2001-02-12 14:00:00 -0700, by Shalom Craimer

Back to Tech Journal