How to Set/Change Time Zone in RHEL

The /etc/sysconfig/clock file allows us to configure UTC
UTC=
This controls how the system reads the hardware clock

- If this value is set to YES, then system will use Universal time
- If set to NO, system will use localtime

ZONE="zone name"

Drill into /usr/share/zoneinfo

You may see directories like this

# pwd
/usr/share/zoneinfo

# ls US
-rw-r--r--  1 root  wheel   1.0K Nov  1 15:05 Pacific
-rw-r--r--  4 root  wheel   877B Nov  1 15:12 Mountain
-rw-r--r--  2 root  wheel   811B Nov  1 15:12 Michigan
-rw-r--r--  3 root  wheel   869B Nov  1 15:12 Indiana-Starke
-rw-r--r--  3 root  wheel   1.2K Nov  1 15:12 Eastern
-rw-r--r--  4 root  wheel   606B Nov  1 15:12 East-Indiana
-rw-r--r--  2 root  wheel   1.2K Nov  1 15:12 Central
-rw-r--r--  2 root  wheel   130B Nov  1 15:12 Arizona
-rw-r--r--  3 root  wheel   858B Nov  1 15:12 Aleutian
-rw-r--r--  2 root  wheel   861B Nov  1 15:12 Alaska
-rw-r--r--  3 root  wheel   125B Nov  1 15:12 Samoa
-rw-r--r--  2 root  wheel   101B Nov  1 15:12 Hawaii


If your zone is Pacific for example (which lies under US), you'll name your zone as "US/Pacific"

ZONE="US/Pacific"

In case UTC is set to NO, the file /etc/localtime can be set as a symlink pointing to the files in the directories above.

For example: If you use local time for Pacific then

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

The two files, working together will determine that we use localtime and the zone is US Pacific.

2 comments:

  1. Online and cell casinos use credit cards and on-line payments to play on-line slots. You will in all probability find no distinction between the gaming expertise in Indonesian casinos and different casinos in regulated markets. We can also switch personal information in connection with a business department or any other fundamental business change. Delaware and Nevada in 2017 to share their swimming pools of players, enhance their progressive jackpots and 카지노사이트 much more. 000 sqm country has 53 hotel rooms with intensive convention rooms, four restaurants a pair of|and a pair of} swimming swimming pools.

    ReplyDelete
  2. Play within your means is the primary rule, which applies to any kind of poker you’re playing in}. With that said, you need to} play the maximum wager to qualify 메리트카지노 for any progressive jackpots. Watch, learn and hearken to interviews with video poker specialists that inform you the best ideas for winning at video poker. This is two-part series the place Mike Shackleford, identified as|also called|also referred to as} the “Wizard of Odds” offers his top 10 record of errors that video poker gamers make.

    ReplyDelete

Help a friend, share your knowledge