More technical information may be concerned about: itheima get (male mound number)
The time is divided into Linux System Clock (system time) and Real Time Clock (hardware time, referred to as RTC).
System Time: refers to the time in the current Linux Kernel.
Hardware time: battery supply on board.
Check the system time command: #date
setting command system time: #date -set (month / day / year hours: minutes: seconds)
Example: #date -set "10/11/10 10:15"
View hardware time command: # hwclock
setting command hardware time: # hwclock -set -date = (month / day / year: minutes: seconds)
mentioned above is manually set to a time point of time, there may be an error with the current network time . Here are some methods and time synchronization on the time server
1. Installation tool ntpdate
# -Y yum the install NTP ntpdate
2. setting the system time with network time synchronization
# ntpdate cn.pool.ntp.org
3. write hardware system time time
# hwclock --systohc |
|