Please select one of the following time zone regions.
1) east China - Beijing?? Guangdong?? Shanghai?? etc.
2) Heilongjiang (except Mohe)?? Jilin
3) central China - Sichuan?? Yunnan?? Guangxi?? Shaanxi?? Guizhou?? etc.
4) most of Tibet & Xinjiang
5) west Tibet & Xinjiang
#? 1
The following information has been given:
China
east China - Beijing?? Guangdong?? Shanghai?? etc.
Therefore TZ='Asia/Shanghai' will be used.
Local time is now: Sat Dec 13 00:59:53 CST 2014.
Universal Time is now: Fri Dec 12 16:59:53 UTC 2014.
Is the above information OK?
1) Yes
2) No
#? 1
You can make this change permanent for yourself by appending the line
TZ='Asia/Shanghai'; export TZ
to the file '.profile' in your home directory; then log out and log in again.
Here is that TZ value again?? this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
Asia/Shanghai
[root@bidevelop4 ~]#
[root@BIAPP ~]# export TZ='Asia/Shanghai'
????---???????????д??.bash_profile????
?????????????????????????????????????
?????????????????????????в?????Ч??????????????????????????????????????????趨?????????????Linux?????????
????????£?
????Linux???UTC???Coordinated Universal Time?????????Э??????????????????????????????????????α?????GMT?????????????????????????????????????? /etc/default/rcS???????У??趨??????????UTC??UTC=yes???á?
?????????????????????????????????hard clock????????BIOS???????????????????
???????????????????????????????????趨?UTC??GMT??????????????????????rcS??????趨UTC=yes???????????no??
?????????????BIOS???涼?趨???????????????????????????Windows???????UTC????????????UTC=no??
????(a).?????????????????????????????????
????/etc/localtime
????/etc/timezone
????timezone??????????????????????д????????????У??????????????(Asia/Shanghai)
????localtime??????????????????????д??Щtimezone data????????????????????????????λ?????/usr/share/zoneinfo
????????????????Shanghai??????/etc?μ?localtime????????????????????????????Ч??
????(b).????????????????????????/etc/default/rcS
???????????????????????????????????
????2????????
?????????????????????????????????????????????????????
????[root@BIAPP ~]#  /usr/sbin/ntpdate pool.ntp.org   ---- ??????й???????????
????????????????????????賿?????????????
?????????????????????????????????????????????????????????
????Linux????????????????hwclock???????
????hwclock --show ???????????
????hwclock --systohc ?????????д?????
????hwclock --hctosys ??????????д???????
????????????????????????????????????£???????????????????ò???????????????