################################################


时间管理

1,date:系统时钟


查看当前系统时间

[root@Jameszhan etc]# date

2016年 11月 14日 星期一 20:16:37 CST


################################################


设定系统时间 2016年 07月 20日 星期三 10:30:00 CST

[root@localhost ~]# date 072010302016

设定系统时间 2016年 07月 20日 星期三 10:30:00 CST


################################################


2,hwdate:硬件时钟


查看硬件时钟

[root@Jameszhan etc]# hwclock

2016年11月14日 星期一 20时14分31秒  -0.308645 seconds


设置BIOS时间和系统时间一致

[root@localhost ~]# hwclock -w


################################################


3,cal:显示时钟

[root@Jameszhan etc]# cal

十一月 2016

日 一 二 三 四 五 六

1  2  3  4  5

6  7  8  9 10 11 12

13 14 15 16 17 18 19

20 21 22 23 24 25 26

27 28 29 30


################################################