FlossDoc: 请协力 GPLv3 的中文翻译工作。
File:/etc/sysconfig/clock
FlossDoc,自由中文開源知識庫
設定檔案 /etc/sysconfig/clock 是包括 Fedora、RHEL 和 CentOS等 Red Hat 系 GNU/Linux 控制如何解讀由硬體時鐘 (hardware clock) 的時間。
目录 |
[编辑]
例子
ZONE="Asia/Hong Kong" UTC=false
[编辑]
主要變數
- UTC=true|yes|false|no - 指定硬體時鐘的時間是格林威冶時間還是系統本地時間。true 或 yes 表示硬體時鐘是使用格林威冶時間,其他則為本地時間。預設為本地時間。
- ARC=false|no - 指定硬體時鐘是否 1980 epoch 時間 (一般使用 ARC 主控台的 Alpha 電腦使用的 epoch 時間)。false 或 no 表示使正常 UNIX epoch 時間 - 1970。預設使用正常 UNIX epoch 時間
- SRM=false|no - 指定硬體時鐘是否 1900 epoch 時間 (一般使用 SRC 主控台的 Alpha 電腦使用的 epoch 時間)。false 或 no 表示使正常 UNIX epoch 時間 - 1970。預設使用正常 UNIX epoch 時間
- ZONE=時區 - 現時系統本地時區名稱,只讓 時間日期屬性工具 (system-config-date) 知道現時 /etc/localtime 所指的時區,改變其值並不會改變實際的系統時區。其值 必須為 /usr/share/zoneinfo 下的時區檔案名稱。
可以參考 /etc/rc.d/rc.sysinit 瞭解其運作。
[编辑]
相關檔案
- /etc/default/rcS - Debian 和 Ubuntu 等設定包括硬件時鐘時區等啟動 script 參數的配置檔案。
- /etc/timezone - Debian 和 Ubuntu 等記錄現時系統時區名稱的檔案。
- /etc/sysconfig
[编辑]
請參看
[编辑]
外部連結
- Linux From Scratch 6.6: 7.4. Configuring the setclock Script (Gerard Beekmans 2010)
- Explanation of timezones, UTC, and the TZ environment variable (Archaic 2003-09-28)
- Comp Tech Doc Project: How Linux Works CTDP Guide Version 0.6.0. The /etc/sysconfig directory (2000-06-01)
- Red Hat Enterprise Linux (RHEL) Reference Guide on sysconfig directory:
- Red Hat Enterprise Linux 6 Deployment Guide: 18.1.4. /etc/sysconfig/clock (Michael Hideo Smith 2011-11)
- Red Hat Enterprise Linux 5 Deployment Guide, 3rd edition: 29.1.6. /etc/sysconfig/clock (Michael Hideo Smith 2008-10)
- Red Hat Enterprise Linux Deployment Guide, revision 5.0.0-20: Chapter 27. The sysconfig Directory (Michael Hideo Smith 2008-10)
- Red Hat Enterprise Linux 4.5 Reference Guide, Edition 3.0: Chapter 4. The sysconfig Directory (2008)
- Red Hat Enterprise Linux 3 Reference Guide: Chapter 4. The sysconfig Directory (2003)
- Red Hat Linux Reference Guide on sysconfig directory:
- Red Hat Linux 9 Reference Guide: Chapter 4. The sysconfig Directory (2003)
- Red Hat Linux 8.0: The Official Red Hat Linux Reference Guide: The /etc/sysconfig/ Directory (2002)
- Red Hat Linux 7.3: The Official Red Hat Linux Reference Guide: Sysconfig Information (2002)
- Red Hat Linux 7.2: The Official Red Hat Linux Reference Guide: Sysconfig Information (2001)
- Red Hat Linux 7.1: The Official Red Hat Linux Reference Guide: Sysconfig Information (2001)
- Red Hat Linux 7.0: The Official Red Hat Linux Reference Guide: Sysconfig Information (2000)
- Red Hat Linux 6.2: The Official Red Hat Linux Reference Guide: Sysconfig Information (2000)
- Red Hat Linux 6.1: The Official Red Hat Linux Reference Guide: Sysconfig Information (1999)
- Red Hat Linux 6.0: The Official Red Hat Linux Installation Guide: 11.13.1 Sysconfig Information (1999)
页面分类: CentOS | Fedora | RHEL | System Administration | Date and Time

