Linux Road of the first of the common system command system clock settings detailed

Source: Internet
Author: User


System clocks are often very useful, so be sure to memorize
Date is used to display and modify the current system datetime, mainly for time management, which is the system time software clock
Date month day year. Seconds mmddhhmm[cc|yy].ss Date 121212122013.34 December 12, 2013 12 minutes 34 seconds years and seconds can be unspecified, default is current year and 00 seconds
Date +%d Show Date Month Day year
+%y/%y can display only the year small Y display two-bit year
+%t Hour minute seconds
+%f Month Day
+%h hours
+%m min
+%s seconds
+%s represents the number of seconds elapsed from 1970.1.1 to now, the international Standard Time, and later used for database timing, one day is 86,400 seconds
Date + "This is%y:%m:%d-%h:%m"
Clock/hwclock Hardware Clock
HWCLOCK-W/--SYSTOHW system-brigadier system clock synchronized to hardware clock central
Hwclock-s/--hctosys changing the system clock with hardware


Linux:
RTC Real Time Clock hardware clock every time the opportunity is read from the hardware clock, and then set the system times
When the read from RTC succeeds, no amount of hardware clock will be used to simulate a software clock in the system
Of course, you can also synchronize the clock via the NTP Network Time protocol server.

This article is from the "Feifei Linux" blog, be sure to keep this source http://feifeilinux.blog.51cto.com/7505939/1553031

Linux Road of the first of the common system command system clock settings detailed

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.