Files
linux-wiki/content/deepin折腾笔记/第五章/5.3.md
2021-10-21 14:57:58 +08:00

11 lines
608 B
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 5.3 Windows 系统时间同步
设置时区:`sudo timedatectl set-timezone Asia/Shanghai`
启用本地时间:`sudo timedatectl set-local-rtc 1 --adjust-system-clock`
把本地时间写入主板:`sudo hwclock --localtime --systohc`
网络同步:`sudo timedatectl set-ntp 1`
查询:`timedatectl status`
如果想改回UTC时间可以`sudo timedatectl set-local-rtc 0`
把UTC时间写入主板`sudo hwclock --utc --systohc`
或者:`sudo apt install ntpdate `#安装同步时间软件
`sudo ntpdate-debian` #网络时间同步