Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > Applications > Issue <<  77 of 141 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 9018
Last update: 09-14-06
Issue:
How do I change the timezone from the command line?
Resolution:

The /usr/share/zoneinfo/ directory contains files for all the available time zones. The system's time zone can be changed from the command line by replacing the existing /etc/localtime file with the desired time zone file from the /usr/share/zoneinfo directory. To change the timezone, execute the commands as given below:

#cp /usr/share/zoneinfo/<Path-Of-Zone-File>  /etc/localtime

Edit the /etc/sysconfig/clock file and change the value of the "ZONE" parameter to the name of the desired time zone. For example, if a user wants to change the time zone from America/Los_Angeles to America/New_York then the "ZONE" line in /etc/sysconfig/clock should look like the example given below:

ZONE="America/New_York"


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > Applications > Issue <<   77  of  141  >>