ubuntu 查看时区 ubuntu如何设置时区
大家好,今日小源来为大家解答以上的问题。ubuntu 查看时区,ubuntu如何设置时区很多人还不知道,现在让我们一起来看看吧!
1、2) Americas1.首先查看时区:swfsadmin@swfsubuntu:~$ date -RTue, 17 Dec 2013 18:23:01 +0800如果要修改时区,执行sudo tzselect2.选择区域:[sudo] password for swfsadmin:Sorry, tocale-gen en_US.UTF-8 again.[sudo] password for swfsadmin:Please identify a location so that time zone rules can be set correctly.Please select a continent or ocean.1) Africa3) Antarctica5) Asia6) Atlantic Ocean8) Europe9) Indian Ocean11) none - I want to specify the time zone using the Posix TZ format.#? 53.选择:Please select a country.1) Afghanistan 18) Israel 35) Palestine2) Armenia 19) Japan 36) Philippines3) Azerbaijan 20) Jordan 37) Qatar4) Bahrain 21) Kazakhstan 38) Russia5) Bangladesh 22) Korea (North) 39) Saudi Arabia6) Bhutan 23) Korea (South) 40) Singapore7) Brunei 24) Kuwait 41) Sri Lanka8) Cambodia 25) Kyrgyzstan 42) Syria10) Cyprus 27) Lebanon 44) Tajikistan11) East Timor 28) Macau 45) Thailand12) Georgia 29) Malaysia 46) Turkmenistan13) Hong Kong 30) Mongolia 47) United Arab Eates14) India 31) Myanmar (Burma) 48) Uzbekistan15) Indonesia 32) Nepal 49) Vietnam16) Iran 33) Oman 50) Yemen17) Iraq 34) Pakistan#? 94.选择时区:时间Please select one of the following time zone regions.1) east China - Beijing, Guangdong, Shanghai, etc.2) Heilongjiang (except Mohe), Jilin3) central China - Sichuan, Yunnan, Guangxi, Shaanxi, Guizhou, etc.4) most of Tibet & Xinjiang5) west Tibet & Xinjiang5.确认验证:The following rmation has been given:Chinaeast China - Beijing, Guangdong, Shanghai, etc.Therefore TZ='Asia/Shanghai' will be used.Local time is now: Tue Dec 17 18:22:10 CST 2013.Is the above rmation OK?1) Yes2) NoYou can make this change permanent for yourself by appending the lineto 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 youcan use the /usr/bin/tzselect command in shell scripts:Asia/Shanghai6.文件到/etc目录下sudo cp /usr/share/zone/Asia/Shanghai /etc/localtime。
本文到这结束,希望上面文章对大家有所帮助。
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系 836084111@qq.com 删除。