Time settings for Linux systems

Source: Internet
Author: User

    1. Linux system time is divided into

      System time SYS and hardware time;

System time: The time of the Linux kernel;

Hardware time: BIOS time;


UTC Time: GMT (Global Standard Time)

Beijing Time (East Eight district) =utc+8h;



2. Viewing time

Date display is the system time;

Hwclock-r | | Hwclock--show shows the hardware time (Beijing time);

hwclock-d display hardware (both Beijing time and UTC time)


3. Change or Sync time

Date-s Modifying the system time

Example: Date-s "2014-10-10 8:49:00"


To modify hardware time:

Boot into BIOS modification

Can be synchronized through the system time;
Hwclock--SYSTOHC System time synchronization hardware time;

Hwclock--hctosys Hardware time synchronization system time;

4. How is the time not changed?

First modify the time zone: Cp/usr/share/zoneinfo/asia/shanghai/etc/localtime overwrite?yes

Then modify the system time: Date-s ' 2014-10-10 8:58:30 '

Last Sync hardware time: Hwclock--SYSTOHC





The first time to write a blog, a little excited, hey!! 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0063.gif "alt=" J_0063.gif "/>

This article is from the "9379746" blog, please be sure to keep this source http://9389746.blog.51cto.com/9379746/1561949

Time settings for Linux systems

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.