Debian 时区的设置

Debian 5 lenny 装好之后,默认的时区是US/Eastern,简写为EDT。我需要显示中国的北京时间,所以要把时区改到东八区。很简单,执行下面语句选择Asia/Shanghai就可以了。
$ sudo dpkg-reconfigure tzdata
$ date
Mon Jul 19 18:07:28 CST 2010
$ date -u
Mon Jul 19 10:08:56 UTC 2010

时间正常显示了。
如果时间不对的话,可以用 date -s 来设置当前时间。

About 王永杰

路漫漫其修远兮,吾将上下而求索
This entry was posted in 尚未分类. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>