Time zone adjustment

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.