关于ubuntu时间修改

1、首先,我们可以看一下ubuntu的网络时间

date

2、假如,和你windows不一样,就可以先安装ntpdate

sudo apt-get install ntpdate

3、然后,再进行调整ubuntu的时间

sudo tzselect
会有一系列的选项,选5,亚洲

下一个就有中国,选9

再选1,北京时间,这个时候你的电脑和网络时间并没有改变。

4、关键就是要将修改变到/etc下

sudo cp /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime

5、更新时间

sudo ntpdate time.windows.com

6、重启系统

感谢这里

原文地址:https://www.cnblogs.com/wzwi/p/10893739.html