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的时间同步问题相关推荐
- Linux离线同步时间
Linux离线同步时间 思路:以其中一台时间为准 脚本 #!/bin/shcurrent=`date '+%H:%M:%S'` for i in bigdata1 bigdata2 bigdata3 ...
- Linux服务器同步时间
进行Linux服务器的时间同步是一件需要注意的事情,不然,集群中的服务器时间不同将导致许多奇怪问题发生, 如果没有安装crontab,那么,使用yum install crontabs进行安装和启动, ...
- linux怎么设置屏显示同步,linux设置同步时间
1.时区的支持 (1)hwclock 为了查看硬件时钟是否为本地时间,运行命令hwclock –r.结果系统提示:"Could not open RTC: No such file or d ...
- Linux自动同步时间的方法
介绍两种同步linux系统的时间方法: (1) 开启ntpd服务,即配置ntp服务器实现时间同步. (2) 利用ntp客户端程序,即ntpdate同步时间. 注意:因为ntp服务器本来就会与上层时间服 ...
- Linux ntpdate同步时间
背景: 有时候Linux系统时间可能存在错误或者有误差,这个时候就可以用ntpdate同步更新Linux系统时间. 步骤: (1)安装ntpdate [root@server01 ~]# ntpdat ...
- Linux虚拟机同步时间
第一.在解决问题之前,我们首先来了解下面几个知识点: 1. date命令: #date 显示系统时间 2.hwclock命令 (即hardwareclock系统硬件时间) #hwclock 显示硬 ...
- linux 自动同步时间命令,LINUX系统时间怎么设置同步脚本或命令?
Linux系统和windows不同的地方,如果时间和网络时间差距太大的话.可能会导致程序,进程启动不了.所以linux系统时间同步显得尤为重要,咗嚛本经验以centos系统为例,演示同步时间的脚步或命 ...
- linux 虚拟机同步时间
NTP是用于同步网络中计算机时间的协议,全称为网络时间协议(Network Time Protocol). 这里利用的是阿里云时间服务器; 首先date查看虚拟机的时间 cal 查看日历 查看是否与北 ...
- Linux CentOS7 同步时间的两种方式(npt 或者 rdate)
1. 设置时区 # 查看当前时区 [root@localhost ~]# timedatectl status|grep 'Time zone'# 设置系统时区为上海 [root@localhost ...
最新文章
- 一个复杂系统的拆分改造,压力真大!
- java map集合遍历方法,Java的Map集合的三种遍历方法
- Oracle 基础系列之1.1 oracle的安装
- clion phpstorm 等jetbrains编辑器激活教程
- vue 公众号扫描_vue编写微信公众号打开相机功能
- 5道谷歌面试题:即使是天才也要怀疑自己能力了(附答案)
- 谷歌 Pixel 4 人像模式拍照算法揭秘
- html input 字体颜色_html 元素参考整合实用收藏!前端web工程师必备!
- 2 lt lt 8运算 java_Java移位运算符 lt;lt; gt;gt; gt;gt;gt;_Java_七九推
- 华为 2020暑期实习 面试回忆
- 解决ThinkPad E580因AMD显卡导致系统崩溃的问题
- SAP 领料BAPI BAPI_GOODSMVT_CREATE 提示 短缺未限制使用的SL
- EBS创建会计科目请求报错问题查询
- WIN2003 R2安装EPSON6200L打印机问题解决
- java模仿微博代码_杨老师课堂_Java核心技术下之控制台模拟微博用户注册案例
- oracle11g ins208022,解决重装 Oracle 出现的 INS-32025 问题,完全卸载 Oracle11g
- IP组播配置与管理——5
- 01- NumPy 数据库 (数据库)
- Koch(科赫)雪花绘制
- 《我从起点开始奔跑》
热门文章
- 有关 Lambda linq练习 有待整理
- swift inheritace 继承
- iOS 两种方法实现左右滑动出现侧边菜单栏 slide view
- 标准控件(二)——Calendar
- Spire.Pdf 的各种操作总结
- JVM学习笔记-02-JVM的体系结构
- python意外缩进引发逻辑错误_python – IndentationError:意外的缩进错误
- vb.net读取excel并写入dgv_读取PDF中的表格写入EXCEL?30行代码搞定
- processing python模式_详解python之多进程和进程池(Processing库)
- 上传文件实时显示网速怎么实现_担心PC程序吃内存占网速?有了它终于放心了...