How to modify system time in Linux command line mode
This article mainly explains "how to modify system time in Linux command line mode". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to modify system time in Linux command line mode".
This article describes how to modify the system time in Linux command line mode.
Use the date command to view or modify the system date and time in Linux command line mode.
Date / / Show current date
Date-s / / sets the current time. Only root permissions can be set, and others can only be viewed.
Date-s 20061010 / / is set to 20061010, which sets the specific time to empty 00:00:00
Date-s 12:23:23 / / set the specific time and will not change the date
Date-s "12:12:23 2006-10-10" / / this sets the full time
Thank you for your reading, the above is the content of "how to modify the system time in the Linux command line mode". After the study of this article, I believe you have a deeper understanding of how to modify the system time in the Linux command line mode. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!