Linux manual adjustment date time

  

demo system and scope

demo system: Centos6.4

Scope: linux

centos modification date

Perform the following determination and confirmation at the terminal to change the current system date to July 11, 1998

01.date -s 07/11/98 centos modification time

at the terminal Perform the following determination and determine, you can change the current system time to 22:40:0 seconds

01.date -s 22:40:00 centos modify date and time considerations

in centos When the system starts, the Linux system will read the time from CMOS to the current system variables, and the time we modify is realized by modifying the system time. In order to keep the system time and CMOS time consistent, the LINUX system will take about 11 minutes per land. Synchronize once to CMOS. If the Linux system is restarted before synchronization, the modified date and time that may be executed cannot take effect. If it is guaranteed to be effective, you can execute “clock -w”, this command is to ensure that the modified time is synchronized to CMOS.

Copyright © Windows knowledge All Rights Reserved