One Linux command per day (3)-Set time zone (Tzselect)

Source: Internet
Author: User
Tags set time

  • Set up Beijing time zone, Asia-China
    [Email protected]:~$Tzselectplease Identify a location so this time zone rules can be set correctly. Please select a continent, ocean,"coord", or"TZ". 1) Africa2) Americas3) Antarctica4) Asia5) Atlantic Ocean6) Australia7) Europe8) Indian Ocean9) Pacific Ocean) Coord-I want to use geographical coordinates.) TZ-I want to specify the time zone using the Posix TZ format.#? 4Please select a country whose clocks agree with yours.1) Afghanistan Israel 35) Palestine2) Armenia Japan 36) Philippines3) Jordan 37 Azerbaijan) Qatar4) Bahrain Kazakhstan 38) Russia5) Bangladesh Korea (north) 39) Saudi Arabia6) Bhutan Korea (south) 40) Singapore7) Brunei Kuwait 41) Sri Lanka8) Cambodia Kyrgyzstan 42) Syria9) Laos 43) TaiwanCyprus) Lebanon 44) Tajikistan) East Timor) Macau 45) ThailandGeorgia) Malaysia 46) TurkmenistanHong Kong) Mongolia 47) Arab EmiratesIndia) Myanmar (Burma) 48) UzbekistanIndonesia) Nepal 49) VietnamIran) Oman 50) Yemen) Iraq 34) Pakistan#? 9Please select one of the following time zone regions.1) Beijing Time2) Xinjiang time#? 1The following information has been Given:china Beijing Timetherefore TZ= ' asia/Shanghai ' 'll be used. Selected Time is Now:sat16:02:44 CST 2018. Universal Time is Now:sat08:02:44 UTC 2018. is the above information OK? 1) Yes2) No#? 1You can make this change permanent foryourself by appending the line TZ= ' asia/Shanghai '; export tzto the file '. Profile 'inchyour home directory; Then log out and loginchagain. Here's the TZ value again, this time in standard output so that youcan use the/usr/bin/tzselect commandinchShell Scripts:asia/shanghai

One Linux command per day (3)-Set time zone (Tzselect)

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.