Linux Setup system date and time CentOS6.3

Source: Internet
Author: User
Tags set time

This article refers to the Web article, which is the document that you summarize after your practice:

[[email protected] ~]# date-s 07/19/2015 Set Date

Sunday, July 19, 2015 00:00:00 CST

[[email protected] ~]# date-s 21:02:30 Set time

Sunday, July 19, 2015 21:02:30 CST

[[Email protected] ~]# date 071921052015.20 set datetime (MMDDHHMMYYYY.SS)

Sunday, July 19, 2015 21:05:20 CST

[[email protected] ~]# date View system time

Sunday, July 19, 2015 21:40:18 CST

View the system hardware clock that is the BIOS time

[Email protected] ~]# hwclock--show or clock--show

July 19, 2015 Sunday 20:56 28 sec -0.299828 seconds

Set System hardware Time

[Email protected] ~]# hwclock--set--date= "07/19/1521:26:30"

[Email protected] ~]# hwclock--show

July 19, 2015 Sunday 21:26 36 SEC -0.766557 seconds

[Email protected] ~]# clock--set--date= "07/19/1521:26:30"

[[Email protected] ~] #clock--show

July 19, 2015 Sunday 21:26 34 SEC -0.563807 seconds

Synchronous system and hardware clock

[email protected] ~]# hwclock--SYSTOHC system clock and hardware clock synchronization

[Email protected] ~]# clock--SYSTOHC ibid.

[email protected] ~]# hwclock--hctosys hardware clock synchronization with system clock

[Email protected] ~]# clock--hctosys ibid.


This article is from the "Personal essays" blog, please be sure to keep this source http://sz659918615.blog.51cto.com/9141346/1676183

Linux Setup system date and time CentOS6.3

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.