In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will introduce in detail for you "Linux system how to check the system boot time", the content steps are clear and detailed, the details are handled properly, and the editor will update different knowledge points every day, hope that this article "Linux system how to check the system boot time" can give you unexpected harvest, please follow the editor's ideas slowly in depth, the specific content is as follows, to harvest new knowledge.
1. View / proc/uptime
Root@master1565:~# cat / proc/uptime 673.83 1327.68 root@master1565:~# date-d "`cut-F1-d. / proc/ uptime` seconds ago" Mon Apr 9 09:36:31 CST 2018 root@master1565:~# date-d "$(awk-F.'{print $1}'/ proc/uptime) second ago" + "% Y-%m-%d% H:%M:%S" 2018-04-09 09:36:31 recommendation is simple and clear
Date-d "$(awk-F.'{print $1}'/ proc/uptime) second ago" + "% Y-%m-%d% H:%M:%S" 2. Who command view
Who-b looks at the last time the system booted.
Who-r to view the current system uptime
Root@master1565:~# who-b system boot 2018-03-30 23:20 root@master1565:~# who-r run-level 5 2018-03-30 23:20
3. Last reboot can see the startup time of Linux system history.
Root@master1565:~# last reboot reboot system boot 4.4.0-116-generi Mon Apr 9 09:36 still running reboot system boot 4.4.0-116-generi Mon Apr 9 09:32-09:36 (00:03) wtmp begins Sun Apr 1 21:24:06 2018 View the last time the Linux system booted
Root@master1565:~# last reboot | head-1 reboot system boot 4.4.0-116-generi Mon Apr 9 09:36 still running4.TOP command view
Root@master1565:~# top
5.w Command View
Root@master1565:~# w
6.uptime command view
Root@master1565:~# uptime
What are the versions of Linux? the versions of Linux are Deepin, UbuntuKylin, Manjaro, LinuxMint, Ubuntu and so on. Among them, Deepin is one of the best-developed Linux distributions in China; UbuntuKylin is a derivative release based on Ubuntu; Manjaro is a Linux release based on Arch; LinuxMint's default Cinnamon desktop is similar to Windows XP's easy-to-use; Ubuntu is the Linux operating system based on desktop applications.
Thank you for reading here. I hope you have the most profound experience from the practical level on the key issue of "how to check the boot time of the Linux system". The specific use also requires everyone to practice and use it in order to understand it. If you want to read more related articles, 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.
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.