win10时间和linux不同步时间,ubuntu16和windows10的时间同步问题
一句話搞定
```
sudo hwclock --localtime --systohc
```
命令: hwclock
全稱: hardware clock硬件時鐘
作用:?Query or set the hardware clock.
Functions:
-h, --help? ? ? ? ? show this help text and exit
-r, --show? ? ? ? ? read hardware clock and print result
--get? ? ? ? ? ? read hardware clock and print drift corrected result
--set? ? ? ? ? ? set the RTC to the time given with --date
-s, --hctosys? ? ? ? set the system time from the hardware clock
-w, --systohc? ? ? ? set the hardware clock from the current system time
--systz? ? ? ? ? set the system time based on the current timezone
--adjust? ? ? ? adjust the RTC to account for systematic drift since the clock was last set or adjusted
-c, --compare? ? ? ? periodically compare the system clock with the CMOS clock
--getepoch? ? ? print out the kernel's hardware clock epoch value
--setepoch? ? ? set the kernel's hardware clock epoch value to the value given with --epoch
--predict? ? ? ? predict RTC reading at time given with --date
-V, --version? ? ? ? display version information and exit
選項:
-u, --utc? ? ? ? ? ? the hardware clock is kept in UTC
--localtime? ? ? the hardware clock is kept in local time
-f, --rtc ? ? special /dev/... file to use instead of default
--directisa? ? ? access the ISA bus directly instead of /dev/rtc
--badyear? ? ? ? ignore RTC's year because the BIOS is broken
--date ? ? specifies the time to which to set the hardware clock
--epoch ? specifies the year which is the beginning of the hardware clock's epoch value
--update-drift? update drift factor in /etc/adjtime (requires --set or --systohc)
--noadjfile? ? ? do not access /etc/adjtime; this requires the use of either --utc or --localtime
--adjfile specifies the path to the adjust file; the default is /etc/adjtime
--test? ? ? ? ? do not update anything, just show what would happen
-D, --debug? ? ? ? ? debugging mode
總結
以上是生活随笔為你收集整理的win10时间和linux不同步时间,ubuntu16和windows10的时间同步问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 380免费云存储_三款功能强大的云盘软件
- 下一篇: loss下降auc下降_梯度下降算法 线