Skip to content

Instantly share code, notes, and snippets.

@QGB
Created December 14, 2018 09:52
Show Gist options
  • Save QGB/378bc61b06bf0f183410814646244056 to your computer and use it in GitHub Desktop.
Save QGB/378bc61b06bf0f183410814646244056 to your computer and use it in GitHub Desktop.
没有网络的情况下可以用这个设置时间
1、date -s
date -s 20181119
date -s 23:40:00
把系统时间写入BIOS时间里。执行命令hwclock -w保存软件时间至硬件时间。
hwclock -w
如果成功,将系统时间,写入BOIS hwclock -w 或 hwclock --systohc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment