View Linux boot time/restart time __linux

Source: Internet
Author: User
Summarize some ways to view the time of the Linux open Machine 1:who command to view Who-b to see when the last system started. Who-r View current system run time Linux run time: 1.uptime command output: 16:11:40 up, 4:21, 2 users, load average:0.00, 0.01, 0.00 is running 4个小时21分 Minutes

2. View/proc/uptime file system startup time Cat/proc/uptime output: 5113396.94 575949.85 The first number is the system has been running for 5,113,396,.94 seconds, using the System Tools date to calculate the starting time

3.last reboot [Root@master ~]# last reboot
Reboot system boot 2.6.32-431.el6.x Tue Feb 27 20:55-21:34 (00:39)
Reboot system boot 2.6.32-431.el6.x Tue Feb 27 08:41-17:30 (08:48)
Reboot system boot 2.6.32-431.el6.x Mon Feb 26 22:16-22:45 (00:28)
Reboot system boot 2.6.32-431.el6.x Mon Feb 26 21:45-22:10 (00:24)
Reboot system boot 2.6.32-431.el6.x Mon Feb 26 08:41-17:25 (08:44)
Reboot system boot 2.6.32-431.el6.x Sun Feb 25 08:41-16:51 (08:10)
Reboot system boot 2.6.32-431.el6.x Sat Feb 24 20:48-22:10 (01:21)
Reboot system boot 2.6.32-431.el6.x Sat Feb 24 08:41-17:25 (08:44)
Reboot system boot 2.6.32-431.el6.x Fri Feb 23 23:16-23:24 (00:07)
Reboot system boot 2.6.32-431.el6.x Fri Feb 23 08:41-17:12 (08:31)

Reboot system boot 2.6.32-431.el6.x Thu Feb 22 20:31-22:10 (01:38)

....

Where the first line of 20:55-21:34 (00:39) indicates the boot time 20:55 current time 21:34 run time: 39 minutes (System is still running, then execute next last reboot 21:34 will be changed)

Where the second line of 08:41-17:30 (08:48) indicates the last boot time 08:41 shutdown time 17:30 run time: 8 hours 48 minutes (no change)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.