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 ...
最新文章
- FFmpeg迎来20周年生日!凭一己之力养活全球无数播放器!
- ARM(IMX6U)裸机主频和时钟
- Java 关于中文乱码处理的经验总结
- 一个显示器分两个屏幕_桌面改造计划2.0:一个显示器不够那就两个,桌面好物分享...
- 进程串行变并行linux,linux进程简述
- eclipse package explorer视图中怎么让default package不显示?
- Quartus17报错Top-level design entity “dff“ is undefined的解决办法
- Linux学习笔记 -- 定时任务调度/磁盘分区与挂载
- 数据分析、数据挖掘、机器学习、神经网络、深度学习和人工智能概念区别(入门级别)...
- SqlMapConfig.xml 的配置
- 接口测试工具 soapui 下载及安装
- MSSQL 2012 密钥
- [Kaldi] MFCC特征提取源码详解
- android ui开发知乎,实现知乎app的主界面效果
- 超人视觉启蒙班一些零散笔记
- 画圆怎么编程python,python实现画圆功能
- tableau各种精典示例经验总结01
- C语言中的restrict限定符
- 数字与英文字母转换matlab,MATLAB编程:数值(0-25)转换成大写英文字母
- 1+X中级商城集群搭建(三台主机)