ubuntu与windows双系统时间同步

windows使用当地时间,ubuntu使用UTC时间,两者之间时差为8h。
首先安装时间同步工具:

sudo apt install ntpdate

再使用时间同步工具通过互联网同步时间:

sudo ntpdate time.windows.com

将ubuntu设置为当地时间:

sudo hwclock --localtime --systohc

重启之后,双系统时间就同步啦!

猜你喜欢

转载自blog.csdn.net/justinyjf/article/details/131851104
今日推荐