怎么在ubuntu系统中修改时区和时间
发表于:2025-12-02 作者:千家信息网编辑
千家信息网最后更新 2025年12月02日,怎么在ubuntu系统中修改时区和时间?很多新手对此不是很清楚,为了帮助大家解决这个难题,下面小编将为大家详细讲解,有这方面需求的人可以来学习下,希望你能有所收获。ubuntu修改时区和时间的方法1.
千家信息网最后更新 2025年12月02日怎么在ubuntu系统中修改时区和时间
怎么在ubuntu系统中修改时区和时间?很多新手对此不是很清楚,为了帮助大家解决这个难题,下面小编将为大家详细讲解,有这方面需求的人可以来学习下,希望你能有所收获。
ubuntu修改时区和时间的方法
1.首先查看时区:
codetc@webubuntu:~$ date -RTue, 17 Dec 2013 18:23:01 +0800
如果要修改时区,执行sudo tzselect
2.选择区域:亚洲
codetc@webubuntu:~$ sudo tzselect[sudo] password for codetc: Please identify a location so that time zone rules can be set correctly.Please select a continent or ocean. 1) Africa 2) Americas 3) Antarctica 4) Arctic Ocean 5) Asia 6) Atlantic Ocean 7) Australia 8) Europe 9) Indian Ocean10) Pacific Ocean11) none - I want to specify the time zone using the Posix TZ format.#? 5
3.选择国家:中国
Please select a country. 1) Afghanistan 18) Israel 35) Palestine 2) Armenia 19) Japan 36) Philippines 3) Azerbaijan 20) Jordan 37) Qatar 4) Bahrain 21) Kazakhstan 38) Russia 5) Bangladesh 22) Korea (North) 39) Saudi Arabia 6) Bhutan 23) Korea (South) 40) Singapore 7) Brunei 24) Kuwait 41) Sri Lanka 8) Cambodia 25) Kyrgyzstan 42) Syria 9) China 26) Laos 43) Taiwan10) Cyprus 27) Lebanon 44) Tajikistan11) East Timor 28) Macau 45) Thailand12) Georgia 29) Malaysia 46) Turkmenistan13) Hong Kong 30) Mongolia 47) United Arab Emirates14) India 31) Myanmar (Burma) 48) Uzbekistan15) Indonesia 32) Nepal 49) Vietnam16) Iran 33) Oman 50) Yemen17) Iraq 34) Pakistan#? 9
4.选择时区:北京时间
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 & Xinjiang#? 1
5.确认验证:
The following information has been given: China east China - Beijing, Guangdong, Shanghai, etc.Therefore TZ='Asia/Shanghai' will be used.Local time is now: Tue Dec 17 18:22:10 CST 2013.Universal Time is now: Tue Dec 17 10:22:10 UTC 2013.Is the above information OK?1) Yes2) No#? 1You can make this change permanent for yourself by appending the line TZ='Asia/Shanghai'; export TZto 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/Shanghai
6.复制文件到/etc目录下
sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
7.更新时间
sudo ntpdate time.windows.com
8.修改时间以后,修改硬件CMOS的时间
sudo hwclock --systohc
看完上述内容是否对您有帮助呢?如果还想对相关知识有进一步的了解或阅读更多相关文章,请关注行业资讯频道,感谢您对的支持。
时间
时区
选择
帮助
系统
清楚
内容
区域
国家
对此
文件
文章
新手
方法
更多
目录
知识
硬件
行业
资讯
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
江苏网络安全协会戴晟
网易服务器是什么样子的
数据库三张表tigger
关于软件开发的需求分析
360安全连接到服务器地址
中国网络安全观的发展
怎么看db2数据库有没有打开
普陀区软件开发厂家报价
服务器 免费防护
比利时 网络安全
台达服务器撞机怎么解决
如何用sql查询数据库数据
辽宁省联通服务器地址
怎样设计access数据库
数据库更改打开方式
芜湖苹果手机软件开发前十名
怎么查看原服务器梦幻
软件开发整体流程图
软件开发和信息系统集成服务
中国学术论文数据库
庚顿数据库的安全配置
山东理工网络技术学院
黑莓服务器
软件开发工程师职业发展前景
联想二手服务器回收
鹤壁市网络安全协同创新
服务器怎么下载网页代码
前端提交的数据怎么给数据库
使命召唤无线战争怎么连接服务器
3d像素射击老是连接服务器