查linux开机时间和重启时间

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/rocklee/article/details/51733392

      who -b 查当前这次开机的时间

[root@DGWEBPROD3 bmsscanv3]# who -b
         system boot  2016-05-06 12:31


      last reboot 查重启时间

reboot   system boot  3.10.0-327.el7.x Fri May  6 12:31 - 12:21 (46+23:49)
reboot   system boot  3.10.0-327.el7.x Sun May  1 11:17 - 12:21 (52+01:04)
reboot   system boot  3.10.0-327.el7.x Sun May  1 10:52 - 11:16  (00:23)
reboot   system boot  3.10.0-327.el7.x Sun May  1 10:45 - 10:52  (00:07)
reboot   system boot  3.10.0-327.el7.x Sun May  1 10:25 - 10:52  (00:27)
reboot   system boot  3.10.0-327.el7.x Sun May  1 08:11 - 10:25  (02:13)
reboot   system boot  3.10.0-327.el7.x Thu Apr 28 17:56 - 10:25 (2+16:28)
reboot   system boot  3.10.0-327.el7.x Thu Apr 28 17:50 - 17:56  (00:06)
reboot   system boot  3.10.0-327.el7.x Thu Apr 28 17:19 - 17:56  (00:36)
reboot   system boot  3.10.0-327.el7.x Wed Apr 27 10:26 - 17:56 (1+07:30)
reboot   system boot  3.10.0-327.el7.x Mon Apr 25 09:49 - 11:26  (01:37)
reboot   system boot  3.10.0-327.el7.x Mon Apr 25 09:40 - 08:48  (00:-51)
reboot   system boot  3.10.0-327.el7.x Sun Apr 24 01:09 - 08:39 (1+07:30)
reboot   system boot  3.10.0-327.el7.x Sun Apr 24 00:34 - 00:08  (00:-25)
reboot   system boot  3.10.0-327.el7.x Sat Apr 23 20:31 - 23:34  (03:02)
reboot   system boot  3.10.0-327.el7.x Sat Apr 23 17:58 - 19:31  (01:32)

展开阅读全文

没有更多推荐了,返回首页