#date日期
%Y 2017 %y 17 #后两位
%m 06 %d 12
%H-%M-%S
%F #2017-06-19
%T #15:48:22
date -s '12:12:12'
clock -w #把系统时间写入CMOS
date -s "2017-01-11 18:00" #-s system 系统时钟
clock -w #系统时间写到服务器时钟
date -s "2016-12-07 12:00:00" #修改系统时间
hwclock -w #系统时间同步到时钟时间
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/168049.html原文链接:https://javaforall.cn