您的位置:首页 > 运维架构 > Linux

linux基础篇-02,linux时间管理date hwclock cal 简述

2016-11-14 20:46 232 查看
################################################

时间管理
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

################################################
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  命令 date cal