(1) Modify the system time.
There are two Linux system clocks, one is the hardware clock, that is, the BIOS time, which is the time we see in CMOS setup, and the other is the system clock, which is the kernel time of the Linux system. When Linux starts, the system kernel reads the hardware clock settings, and the system clock is independent of the hardware. Sometimes we find that the system clock is inconsistent with the hardware clock, so we need to perform time synchronization and share the command usage of time settings and clock synchronization.
The date command sets the dates to June 18, 2014
----Date-s 06/18/14
Set the time to 14 points, 20 minutes, 50 seconds
----Date-s 14:20:50
(2) Clock command to view, set hardware time (/sbin/clock soft connect to Hwclock)
Viewing the system hardware clock
Clock--show or clock-r
(3) synchronous system and hardware clock.
system clock and Hardware clock synchronization:
Clock--SYSTOHC or # clock-w Synchronize the hardware clock with the system clock,HC represents the hardware time, SYS represents the system time
(4) time zone setting:
System-config-date
Linux system modification system time and time zone