Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the time zone profile for CentOS

Shulou Source: shulou.com Published: 2022-06-01 09:40:49 11月12日 Update

This article mainly introduces "what is the time zone configuration file of CentOS". In the daily operation, I believe that many people have doubts about what the time zone configuration file of CentOS is. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubt of "what is the time zone configuration file of CentOS?" Next, please follow the editor to study!

1) the time zone configuration file of CentOS is: / etc/sysconfig/clock

The configuration options of UTC,ARC,SRM,ZONE are supported in this configuration file. The details of these configuration options are as follows:

(1) UTC

Specify whether the time saved in BIOS is GMT/UTC time. True indicates that the time saved in BIOS is UTC time, and false indicates that the time saved in BIOS is local time.

(2) ZONE

Specify the time zone, and the value of ZONE is the relative pathname of a file, which is a time zone file in the relative / usr/share/zoneinfo directory. For example, the value of ZONE can be: "Asia/Shanghai", "US/Pacific", "UTC", etc.

(3) ARC

This option is generally configured with false, but only with some special hardware (Alpha). This option is true.

(4) SRM

It is the same as ARC. This option is generally configured with false, and it is only configured as false under special hardware.

Description: the parameters in this configuration file have a lot to do with the hwclock command. The system reads the contents of the / etc/sysconfig/clock file at startup and calls the hwclock command according to these contents.

2) configuration instance of / etc/sysconfig/clock

ZONE= "Asia/Shanghai"

UTC=true

ARC=false

At this point, the study on "what is the time zone profile of CentOS" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Configuration files time zone time learning special content commands more hardware help practical great next parameters examples articles methods time theory Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi macOS Microsoft OPPO Reno NVidia