Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to quickly modify system time in Linux system

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to quickly modify the system time in the Linux system, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

At the beginning, or there is a saying on the Internet, for example, set the time to 18:30:50 on 2014-07-12.

We will set the date first.

Date-s 20140712 reset time

Date-s 18:30:50 a machine is fine, too much you will be bored. Is there an one-step solution? After several searches, we found that there is!

Date 071218302014 (month, day, hour and year)

This can be done in one step. But! But what, for Linux, this way of writing is too human, too hard to remember. Is there an easier way? After several explorations, I found that there was!

Date-s "20140712 18:30:50" so that it can be achieved in one step and is easy to remember. I've been using it for a long time. I don't tell him about ordinary people, Xu.

When the time is set, it will be saved. It's okay if you turn it off normally. The system will be saved once when the system is turned off, but if you may not shut down properly, you can save the settings first.

Hwclock-- systohc is right, that's how it's written. Most of the words on the Internet are

Clock-w or

Hwclock-w and if you analyze it carefully, clock is the soft link of hwclock. The parameter-w is not mentioned at all in hwclock's help and man. I don't know what year-w is written.

The above is all the contents of the article "how to quickly modify the system time in Linux system". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report