手机版

linux系统引导流程

发布时间:2021-06-08   来源:未知    
字号:

linux系统引导流程

linux 查看软件时间 date

[root@localhost test]# date

Sun Jan 15 19:20:01 PST 2012

[root@localhost test]#

hwclock 软件时钟

[root@localhost test]# hwclock --help

hwclock - query and set the hardware clock (RTC)

Usage: hwclock [function] [options...]

Functions:

--help show this help

--show read hardware clock and print result

--set set the rtc to the time given with --date

--hctosys set the system time from the hardware clock 依据硬件时钟设置软件时钟 --systohc set the hardware clock to the current system time 依据软件时钟设置硬件时钟

--adjust adjust the rtc to account for systematic drift since

the clock was last set or adjusted

--getepoch print out the kernel's hardware clock epoch value

--setepoch set the kernel's hardware clock epoch value to the

value given with --epoch

--version print out the version of hwclock to stdout

Options:

--utc the hardware clock is kept in coordinated universal time

--localtime the hardware clock is kept in local time

--directisa access the ISA bus directly instead of /dev/rtc

--badyear ignore rtc's year because the bios is broken

--date specifies the time to which to set the hardware clock

--epoch=year specifies the year which is the beginning of the

hardware clock's epoch value

--noadjfile do not access /etc/adjtime. Requires the use of

either --utc or --localtime

[root@localhost test]#

Eg.

[root@localhost test]# date

Sun Jan 15 19:26:05 PST 2012

[root@localhost test]# hwclock

Sun 15 Jan 2012 07:26:10 PM PST -0.128598 seconds

[root@localhost test]# hwclock --hctosys

[root@localhost test]# date

linux系统引导流程.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
×
二维码
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)