命令:tzselect
[14:18:55 root@s3]/root>tzselect
Please identify a location so that time zone rules can be set correctly.
Please select a continent, ocean, "coord", or "TZ".
1) Africa 7) Europe
2) Americas 8) Indian Ocean
3) Antarctica 9) Pacific Ocean
4) Asia 10) coord - I want to use geographical coordinates.
5) Atlantic Ocean 11) TZ - I want to specify the timezone using the Posix TZ format.
6) Australia
#? 4
Please select a country whose clocks agree with yours.
1) Afghanistan 11) Christmas Island 21) Iraq 31) Lebanon 41) Qatar 51) Thailand
2) Antarctica 12) Cocos (Keeling) Islands 22) Israel 32) Macau 42) Réunion 52) Turkmenistan
3) Armenia 13) Cyprus 23) Japan 33) Malaysia 43) Russia 53) United Arab Emirates
4) Azerbaijan 14) East Timor 24) Jordan 34) Mongolia 44) Saudi Arabia 54) Uzbekistan
5) Bahrain 15) French S. Terr. 25) Kazakhstan 35) Myanmar (Burma) 45) Seychelles 55) Vietnam
6) Bangladesh 16) Georgia 26) Korea (North) 36) Nepal 46) Singapore 56) Yemen
7) Bhutan 17) Hong Kong 27) Korea (South) 37) Oman 47) Sri Lanka
8) Brunei 18) India 28) Kuwait 38) Pakistan 48) Syria
9) Cambodia 19) Indonesia 29) Kyrgyzstan 39) Palestine 49) Taiwan
10) China 20) Iran 30) Laos 40) Philippines 50) Tajikistan
#? 10
Please select one of the following timezones.
1) Beijing Time
2) Xinjiang Time, Vostok
#? 1
The following information has been given:
China
Beijing Time
Therefore TZ='Asia/Shanghai' will be used.
然后把这行命令添加到你的 /etc/profile 文件末尾,保存,重新登陆即可。
TZ='Asia/Shanghai'; export TZ