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