1. Use Tzselect to adjust
[[Email protected]]# tzselectPlease identify a TimeZone rules can be set correctly. pleaseSelecta continent or ocean.1) Africa2) Americas3) Antarctica4) Arctic Ocean5) Asia6) Atlantic Ocean7) Australia8) Europe9) Indian OceanTen) Pacific Ocean One) None-i want to specify the Timezone using the Posix TZ format. #? 5 pleaseSelecta country.1) Afghanistan -) Israel *) Palestine2) Armenia +) Japan $) Philippines3) Azerbaijan -) JordanPanax Notoginseng) Qatar4) Bahrain +) Kazakhstan -) Russia5) Bangladesh A) Korea (north) the) Saudi Arabia6) Bhutan at) Korea (south) +) Singapore7) Brunei -) Kuwait A) Sri Lanka8) Cambodia -) Kyrgyzstan the) Syria9) China -) Laos +) TaiwanTen) Cyprus -) Lebanon -) Tajikistan One) East Timor -) Macau $) Thailand A) Georgia in) Malaysia $) Turkmenistan -) Hong Kong -) Mongolia -) Arab Emirates -) India to) Myanmar (Burma) -) Uzbekistan the) Indonesia +) Nepal the) Vietnam -) Iran -) Oman -) Yemen -) Iraq the) Pakistan# ? 9 pleaseSelectOne of the following Timezone regions.1) East China-Beijing, Guangdong, Shanghai, etc.2) Heilongjiang (except Mohe), Jilin3) Central China-Sichuan, Yunnan, Guangxi, Shaanxi, Guizhou, etc.4) The most of Tibet &Xinjiang5) West Tibet &Xinjiang# ? 1 The following information have been Given:china East China-Beijing, Guangdong, Shanghai, etc. Therefore TZ='Asia/shanghai'would be used. Local Timeis Now:tue Sep6 A:Geneva:xxCst .. Universal time is Now:tue Sep6 Geneva:Geneva:xxUtc .. is the above information OK?1) Yes2) No# ? 1 You can MakeThis change permanent foryourself by appending the line TZ='Asia/shanghai'; export Tzto thefile '. profile' inchyour home directory; ThenLog out and loginchagain. Here is the TZ value again, this TimeOn, output So, youcan Use the/usr/bin/tzselect commandinchShell Scripts:asia/shanghai
2. Then replace the
CP /usr/share/zoneinfo/asia/shanghai/etc/cp: Overwrite '/etc/localtime'? y
3. Time synchronization
time 6: £ ntpdate[5847 time 132.163 . 4.103 0.024996 Sec[[email protected]dateTue Sep 6:: - .
4. Synchronize the system time to the hardware
[[Email protected]]# hwclock-w
Time zone adjustment