Linux Command Encyclopedia system settings: Hwclock

Source: Internet
Author: User
Keywords Linux System Setup command encyclopedia Hwclock
Tags aliyun command encyclopedia date debug display function hardware html

Function Description: Display and set the hardware clock.

Grammar: hwclock&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;" [--adjust] [--debug] [--directisa] [--hctosys] [--show] [--SYSTOHC] [--test]
[--UTC] [--version] [--set--date=< Date and time]

Supplemental explanation: In Linux has the hardware clock and the system clock and so on two kinds of clocks. The hardware clock refers to the clock device on the motherboard, which is usually the clock set in the BIOS screen. The system clock refers to the clock in the kernel. When Linux starts, the system clock reads the hardware clock setting, and the system clock is operated independently. All Linux related instructions and functions are set to read the system clock.

Parameters:
--adjust Hwclock each time the hardware clock is changed, it is recorded in the/etc/adjtime file. The--adjust parameter allows the Hwclock to estimate the hardware clock deviation based on previous records and use it to correct the current hardware clock.
--DEBUG displays detailed information about Hwclock execution.
--directisa hwclock preset To access hardware clocks from/DEV/RTC devices. If it is not accessible, this parameter can be used to access the hardware clock directly with the I/O instruction.
--hctosys adjusts the system clock to match the current hardware clock.
--set--date=< Date and time > Set hardware clock.
--show the time and date when the hardware clock is displayed.
--SYSTOHC adjusts the hardware clock to match the current system clock.
--test only test the program without actually changing the hardware clock.
--UTC to use GMT, add this parameter, Hwclock will perform the conversion work.
--version Displays version information.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.