In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Editor to share with you how to check the shutdown time of linux, I believe that 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!
In linux, you can use the last command to view the shutdown time, which is used to display the user's most recent login information. When the parameter is set to "- x shutdown", the shutdown date and time of the system can be displayed. The syntax is "last-x shutdown".
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How to check the shutdown time of linux
To check the shutdown time of Linux, use the last command, and run the last-x shutdown command to display the shutdown date and time of the system, as shown in the following figure:
Note: of course, you can also check the last shutdown time through the pipeline, that is, run the last-x shutdown | head-1 command. The added head-1 parameter refers to the output of one line of information.
The Linux last command is used to display the user's most recent login information.
Permissions: all users.
Grammar
Shell > > last [options]
Parameter description:
-R omits the hostname field
-num before num presentation
Username displays login messages of username
Tty restriction login message includes terminal code
Expand knowledge:
View Linux run time
To know how long the Linux operating system has been running, how many days, hours and minutes it has run, use the uptime command with the-p parameter to intercept, that is, run the uptime-p command, and the output information includes days, hours, and minutes, as shown in the following figure:
Check the restart time under Linux
Run the last command with the-x reboot parameter to view the restart date and specific time of the Linux system, that is, run the last-x reboot command. The result is as follows:
The above is all the contents of the article "how to check the shutdown time of linux". 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: 245
*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.