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)