Linux Command encyclopedia system settings: Clock

Source: Internet
Author: User
Keywords Linux System settings command Encyclopedia
Tags aliyun command encyclopedia date debug file function hardware html

Function Description: adjust &http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;" RTC time.

Syntax: Clock [--adjust][--debug][--directisa][--getepoch][--hctosys][--set--date= "< date time >"][--setepoch--epoch= < >][--show][--systohc][--test][--utc][--version]

Additional explanation: RTC is the hardware time built in the computer, the implementation of this instruction can display now moment, adjust the time of hardware clock, the system time set to the hardware clock with the same time, or the system time back to the hardware clock.

Parameters:
The first time the--adjust uses the "--set" or "--SYSTOHC" parameters to set the hardware clock, a file called Adjtime is generated in the ETC directory. When these two parameters are used again to adjust the hardware clock, this file will record the difference between the two adjustments, the subsequent implementation of the clock instruction plus the "--adjust" parameter, the program will automatically according to the record file of the numerical difference, calculate the average, automatically adjust the hardware clock time.
--DEBUG Displays the instruction execution process in detail, facilitating error-making or understanding of the execution of the program.
--directisa told the clock directive not to access the hardware clock directly by/DEV/RTC device files. This parameter applies to older computers that have only the ISA bus structure.
--getepoch the hardware clock in the system core of the new era value, rendering to the standard output device.
--hctosys hardware Clock to System time and set the timing to match the hardware clock. Because this action will cause the system to fully update the file's access time, it is best to execute it when the system is started.
--set--date the date and time the hardware clock was set.
--setepoch--epoch=< year > set a New Age value for the hardware clock in the core of the system, the year in four-bit tree characters.
--show the time to read the hardware clock and renders it to the standard output device.
--SYSTOHC system time to hardware Clock, which is stored back into the hardware clock.
--test only tests and does not actually write time to the hardware clock or system time.
--UTC the time when the hardware clock is cut, sometimes called UTC or UCT.
--version Displays version information.

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.