This article refers to the Web article, which is the document that you summarize after your practice:
[[email protected] ~]# date-s 07/19/2015 Set Date
Sunday, July 19, 2015 00:00:00 CST
[[email protected] ~]# date-s 21:02:30 Set time
Sunday, July 19, 2015 21:02:30 CST
[[Email protected] ~]# date 071921052015.20 set datetime (MMDDHHMMYYYY.SS)
Sunday, July 19, 2015 21:05:20 CST
[[email protected] ~]# date View system time
Sunday, July 19, 2015 21:40:18 CST
View the system hardware clock that is the BIOS time
[Email protected] ~]# hwclock--show or clock--show
July 19, 2015 Sunday 20:56 28 sec -0.299828 seconds
Set System hardware Time
[Email protected] ~]# hwclock--set--date= "07/19/1521:26:30"
[Email protected] ~]# hwclock--show
July 19, 2015 Sunday 21:26 36 SEC -0.766557 seconds
[Email protected] ~]# clock--set--date= "07/19/1521:26:30"
[[Email protected] ~] #clock--show
July 19, 2015 Sunday 21:26 34 SEC -0.563807 seconds
Synchronous system and hardware clock
[email protected] ~]# hwclock--SYSTOHC system clock and hardware clock synchronization
[Email protected] ~]# clock--SYSTOHC ibid.
[email protected] ~]# hwclock--hctosys hardware clock synchronization with system clock
[Email protected] ~]# clock--hctosys ibid.
This article is from the "Personal essays" blog, please be sure to keep this source http://sz659918615.blog.51cto.com/9141346/1676183
Linux Setup system date and time CentOS6.3