How Linux modifies the time

Source: Internet
Author: User
How Linux modifies the time

At the command line, enter:

Date

Show Current time Fri 3 14:15:16 CST 2007

Date ' +%x%x '

Show Current Time August 03, 2009 14:15 00 seconds

Date-s

Modify Time by string

Can only modify the date, do not modify the time, enter: Date-s 2007-08-03

Only modified time, input: Date-s 14:15:00

Also modify the date time, note to add double quotation marks, the date and time there is a space, enter: Date-s "2007-08-03 14:15:00"

After modifying, remember to enter: Clock-w

Write system time to CMOS

To view the machine's BIOS time (Clock==hwclock):

Hwclock [-RW]

-r: View current BIOS time

-W: Writes the current Linux time to the BIOS!

  • This article from: Hobby Linux Technology Network
  • This article links:

How Linux modifies the time

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.