In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to modify date and time by suse linux and rhel linux". In daily operation, I believe many people have doubts about how to modify date and time by suse linux and rhel linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to modify date and time by suse linux and rhel linux". Next, please follow the editor to study!
How to modify the date and time under SuSE Linux, you can run yast2 timezone to modify the date and time, or you can run the command to modify the date and time.
Run the command, modified date and time:
For example, change the date and time to 22:20 on November 27th, 2010
# date-s "22:20:00 on 2010-11-27"
# hwclock-- systohc writes to CMOS
Linux and rhel modification time commands:
The "date-s" command is generally used to modify the system time. For example, the order to set the system time to July 26, 2010 is as follows.
# date-s 07Universe 26Universe 2010
The command to set the system time to 10:12:00 is as follows.
# date-s 10:12:00
When the system starts, the Linux operating system reads the time from CMOS to the system time variable, and the later modification time is realized by modifying the system time. In order to maintain the consistency between system time and CMOS time, Linux writes system time to CMOS at regular intervals. Since the synchronization takes place at regular intervals (about 11 minutes), if we restart the machine immediately after we execute date-s, the modification time may not be written to CMOS, which is the cause of the problem. If you want to ensure that the changes take effect, you can execute the following command.
# clock-w
This command forces the system time to be written into CMOS, and the study on "how to modify date and time by suse linux and rhel linux" is over. I hope you can solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.