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

js+css to realize three-level navigation menu

This article example shares the specific code of ...

...

How does Vue download non-same-origin files based on URL

Generally speaking, we can have the following two...

Mysql WorkBench installation and configuration graphic tutorial

This article shares with you the installation and...

Three ways to check whether a port is open in a remote Linux system

This is a very important topic, not only for Linu...

Example of converting JS one-dimensional array into three-dimensional array

Today I saw a friend asking a question in the Q&a...

How to modify the group to which a user belongs in Linux

Modify the group to which a user belongs in Linux...

Implementation of Docker data volume operations

Getting Started with Data Volumes In the previous...

Javascript File and Blob Detailed Explanation

Table of contents File() grammar parameter Exampl...

Solve the problem of blank gap at the bottom of Img picture

When working on a recent project, I found that th...

A brief discussion on Vue3 father-son value transfer

Table of contents From father to son: 1. In the s...

Comparative Analysis of UI Applications of Image Social Networking Sites (Figure)

In our life, work and study, social networks have ...

Detailed explanation of Linux mpstat command usage

1. mpstat command 1.1 Command Format mpstat [ -A ...