Red Hat Enterprise Linu 7 3.1.11系统时间管理
来源:互联网 发布:杭州莱茵矩阵国际 编辑:程序博客网 时间:2024/05/22 06:39
1.1.1 系统时间管理:
在Linux中有硬件时钟与系统时钟等两种时钟。硬件时钟是指主机板上的时钟设备,也就是通常可在BIOS画面设定的时钟;系统时钟则是指kernel中的时钟;所有Linux相关指令与函数都是读取系统时钟的设定当Linux启动时,系统时钟会去读取硬件时钟的设定,之后系统时钟即独立运作
两种时间
[root@panda etc]# hwclock
比如还有其它的一些使用
hwclock –s 将系统时钟调整为与目前的硬件时钟一致
hwclock –w 将硬件时钟调整为与目前的系统时钟一致
[root@panda mnt]# hwclock
Wed 30 Nov 2016 10:04:56 PM CST -0.766052 秒
[root@felix ~]# hwclock #查看系统时间
2017年08月03日星期四 17时53分03秒 -0.419032 秒
[root@felix ~]#date #查看系统时间
2017年 08月 03日星期四 17:46:20 CST
[root@felix ~]# date +"%F %T" #指定输出时间格式
2017-08-03 17:47:47
1.1.2 修改时间
[root@felix 桌面]# date -s "2018-06-06 06:06"
2018年 06月 06日 星期三 06:06:00 CST
在Linux中有硬件时钟与系统时钟等两种时钟。硬件时钟是指主机板上的时钟设备,也就是通常可在BIOS画面设定的时钟;系统时钟则是指kernel中的时钟;所有Linux相关指令与函数都是读取系统时钟的设定当Linux启动时,系统时钟会去读取硬件时钟的设定,之后系统时钟即独立运作
两种时间
1.1.1.1 查看硬件时间:
[root@panda etc]# hwclock
比如还有其它的一些使用
hwclock –s 将系统时钟调整为与目前的硬件时钟一致
hwclock –w 将硬件时钟调整为与目前的系统时钟一致
[root@panda mnt]# hwclock
Wed 30 Nov 2016 10:04:56 PM CST -0.766052 秒
1.1.1.2 查看系统和BIOS硬件时间:
BIOS硬件时间:[root@felix ~]# hwclock #查看系统时间
2017年08月03日星期四 17时53分03秒 -0.419032 秒
[root@felix ~]#date #查看系统时间
2017年 08月 03日星期四 17:46:20 CST
[root@felix ~]# date +"%F %T" #指定输出时间格式
2017-08-03 17:47:47
1.1.2 修改时间
[root@felix 桌面]# date -s "2018-06-06 06:06"
2018年 06月 06日 星期三 06:06:00 CST
阅读全文
1 0
- Red Hat Enterprise Linu 7 3.1.11系统时间管理
- Red Hat Enterprise Linu 7 3.1.13关机命令
- Red Hat Enterprise Linu 7 3.1.15启动级别配置:
- Red Hat Enterprise Linux 7 系统安装
- Red Hat Enterprise 系统的安装
- Red Hat Enterprise Linux 6 系统安装
- Red Hat包管理系统
- Red Hat Linu分区方案
- Red Hat Enterprise Linux 7的新功能
- Red Hat Enterprise Linux 7(RHEL7)安装
- Red Hat Enterprise Linux 7 的安装
- red hat enterprise linux
- Red Hat Enterprise Linux 4: 系統管理導論
- Red Hat Enterprise Linux 4: 系統管理
- Red Hat Enterprise Linux 5 系统中安装JDK1.6
- Red Hat Enterprise Linux 5 系统中安装Tomcat6
- Red Hat Enterprise Linux 5 系统中安装Apache
- Red Hat Enterprise Linux修复系统专用 Runlevel
- python找出列表间隐含的关联关系以及重复模式
- OpenGL -- DDS 加载
- PAT-A-https://www.patest.cn/contests/pat-a-practise/1029
- ACM DP Longest Run on a Snowboard
- 倒角距离匹配
- Red Hat Enterprise Linu 7 3.1.11系统时间管理
- 278. First Bad Version
- 软件开发模式简介
- 树莓派安装opencv打开摄像头实现实时传输
- linux initcall机制
- Django中render和render_to_response的区别
- C语言中C89与C99的区别
- [LeetCode 253] Meeting Rooms II 扫描线的应用(Python)
- ViewPager,ScrollView 嵌套ViewPager滑动冲突解决