How to modify the time in centos virtual machine

How to modify the time in centos virtual machine

The one above shows the system time, and the one below shows the hardware time. Since I have modified them here, they are equally fast. If they are not equally fast, do as follows.

This is to change the system year, month, and day, and you can also change the hours, minutes, and seconds. Same command.

This is directly updated to the time in this time zone when there is a network connection.

This is to adjust the hardware time and system time to be the same.

This is to write the date into CMOS .

OK, it's done. You can now check whether your hardware time and system time are the same.

ps: The entire command must be entered under root privileges.

Summarize

The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links

You may also be interested in:
  • How to intercept the specified Tomcat log to the specified file in CentOS7 according to the time period
  • How to modify server system time in CentOS7
  • How to change the CentOS server time to Beijing time
  • Detailed explanation of 2 methods to synchronize network time in Linux/CentOS system
  • How to set accurate time in CentOS
  • Tutorial on how to configure ntp service under CentOS 7
  • Detailed steps to build ntp clock server in CentOS 7
  • Centos 7.4 server time synchronization configuration method [based on NTP service]

<<:  js to achieve the pop-up effect

>>:  Uninstalling MySQL database under Linux

Recommend

dl, dt, dd list label examples

The dd and dt tags are used for lists. We usually...

In-depth analysis of the Identifier Case Sensitivity problem in MySQL

In MySQL, you may encounter the problem of case s...

Mini Program to Implement Slider Effect

This article example shares the specific code for...

How to modify the mysql table partitioning program

How to modify the mysql table partitioning progra...

Detailed explanation of Shell script control docker container startup order

1. Problems encountered In the process of distrib...

Detailed explanation of Linux command file overwrite and file append

1. The difference between the command > and &g...

CentOS 7.9 installation and configuration process of zabbix5.0.14

Table of contents 1. Basic environment configurat...

WeChat applet + ECharts to achieve dynamic refresh process record

Preface Recently I encountered a requirement, whi...

Implementation of TypeScript in React project

Table of contents 1. Introduction 2. Usage Statel...

Use of marker tags in CSS list model

This article mainly introduces the ::master pseud...

JavaScript to implement simple tab bar switching content bar

This article shares the specific code of JavaScri...

Example analysis of the principle and solution of MySQL sliding order problem

This article uses examples to explain the princip...

Steps and pitfalls of upgrading linux mysql5.5 to mysql5.7

Table of contents Linux MySQL 5.5 upgraded to MyS...

Tutorial diagram of installing zabbix2.4 under centos6.5

The fixed IP address of the centos-DVD1 version s...

Do you know how to use Vue to take screenshots of web pages?

Table of contents 1. Install html2Canvas 2. Intro...