当前位置: 技术问答>linux和unix
unix下如何修改时区?
来源: 互联网 发布时间:2014-12-05
本文导语: 我用的是康柏true unix 5.0,想修改时区的设置,请问怎么办?控制面板中有个日历,其中有时区设置,可我改完后关闭日历,他又恢复到了原来的时区。怎么回事? | 命令timeconfig有没有? 我...
我用的是康柏true unix 5.0,想修改时区的设置,请问怎么办?控制面板中有个日历,其中有时区设置,可我改完后关闭日历,他又恢复到了原来的时区。怎么回事?
|
命令timeconfig有没有?
我用RedHat7.2有这个命令的。TIMECONFIG(8) TIMECONFIG(8)
NAME
timeconfig - simple interface for configuring system time parameters
SYNOPSIS
timeconfig [--utc] [--arc] [--back] [--test] [timezone]
DESCRIPTION
timeconfig provides a simple method of configuring both /etc/sysconfig/clock and /etc/localtime which is compatible with both the standard Red
Hat startup scripts and timeconfig(8).
If a timezone is specified, the system timezone is change to the timezone specified. Otherwise, a menu of available timezones is displayed. If
--utc is given, the system clock is assumed to be in universal (Greenwhich mean) time. If --arc is used, the system clock is assumed ot be
stored in the format used by the ARC platform on Digital Alpha platforms (the --arc option is only available on Alpha hardware).
The timeconfig window contains a Cancel button by default. If --back is specified at run time, a Back button is presented instead.
If --test is specified, timeconfig may be run as a non-root user, and no changes are written to the filesystem.
RETURN CODES
timeconfig returns 0 on success, 2 on error, and 1 if the user cancelled the program (by using either the Cancel or Back button).
FILES
/etc/sysconfig/clock
Configures the format used by the hardware clock.
/etc/localtime File containing timezone data, copied from /usr/share/zoneinfo.
SEE ALSO
setclock(8)
我用RedHat7.2有这个命令的。TIMECONFIG(8) TIMECONFIG(8)
NAME
timeconfig - simple interface for configuring system time parameters
SYNOPSIS
timeconfig [--utc] [--arc] [--back] [--test] [timezone]
DESCRIPTION
timeconfig provides a simple method of configuring both /etc/sysconfig/clock and /etc/localtime which is compatible with both the standard Red
Hat startup scripts and timeconfig(8).
If a timezone is specified, the system timezone is change to the timezone specified. Otherwise, a menu of available timezones is displayed. If
--utc is given, the system clock is assumed to be in universal (Greenwhich mean) time. If --arc is used, the system clock is assumed ot be
stored in the format used by the ARC platform on Digital Alpha platforms (the --arc option is only available on Alpha hardware).
The timeconfig window contains a Cancel button by default. If --back is specified at run time, a Back button is presented instead.
If --test is specified, timeconfig may be run as a non-root user, and no changes are written to the filesystem.
RETURN CODES
timeconfig returns 0 on success, 2 on error, and 1 if the user cancelled the program (by using either the Cancel or Back button).
FILES
/etc/sysconfig/clock
Configures the format used by the hardware clock.
/etc/localtime File containing timezone data, copied from /usr/share/zoneinfo.
SEE ALSO
setclock(8)
|
/etc/ 目录下文件“environment”中定制了一些环境变量。其中“TZ”定制时区,例如东八时区就为
“TZ=TAIST-8”。
“TZ=TAIST-8”。
|
tzselect -- select a time zone
then select the choice step by step
then select the choice step by step
|
scoadmin
|
或者你的用户的权限不够???