[7]date和hwclock

在gonme的System->Administration->Time and Date里面把太平洋时区修改成北京时区的时候,不小心把时间选了过了一年了,到明年去了。

结果重启X系统了,出错了。

Nautilus can't be used now, due to an unexpected error from Bonobo when attempting to locate the factory. Killing bonobo-activation-server and restarting Nautilus may help fix the problem.
在网上一顿搜索,使用了
sudo date --set 30/08/2006
这下把时间调到2006年了,X-window一点也进不去了,Ctrl+Alt+F1切换到command下

hwclock --show
hwclock 
--systohc

systohc就是把hardware的clock调整到现在时区的时间。

hwclock --utc --systohc //utc时间

原文地址:https://www.cnblogs.com/smartvessel/p/1905017.html