前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >shutdown & reboot & last

shutdown & reboot & last

作者头像
JNingWei
发布2018-09-28 15:38:11
1.7K0
发布2018-09-28 15:38:11
举报
文章被收录于专栏:JNing的专栏

shutdown

sudo shutdown [-h/-r/ ] [now/+10/22:00]

  • -h:系统停止运作(halt)
  • -r:重启(reboot)
  • 放空:类同于 -h
  • now:立即执行
  • +10:10分钟后执行
  • 22:00:指定时间点22:00执行

reboot

sudo reboot

last

查询本机过去处于 关机状态 的时段

代码语言:javascript
复制
last -x shutdown
代码语言:javascript
复制
shutdown system down  4.4.0-87-generic Sat Sep 23 22:00 - 08:15 (2+10:14)   
shutdown system down  4.4.0-87-generic Sat Sep 23 08:15 - 08:15  (00:00)    
shutdown system down  4.4.0-87-generic Sat Sep 23 08:08 - 08:09  (00:00)    
shutdown system down  4.4.0-87-generic Sat Sep 23 08:02 - 08:02  (00:00)    
shutdown system down  4.4.0-87-generic Fri Sep  8 11:33 - 07:59 (14+20:26)  
shutdown system down  4.4.0-87-generic Thu Sep  7 17:34 - 08:15  (14:41)    
shutdown system down  4.4.0-87-generic Wed Sep  6 21:46 - 08:13  (10:27)    
shutdown system down  4.4.0-87-generic Wed Sep  6 14:09 - 14:11  (00:02)    
shutdown system down  4.4.0-87-generic Tue Sep  5 21:00 - 07:50  (10:49)    
shutdown system down  4.4.0-87-generic Mon Sep  4 17:31 - 08:01  (14:30)    
shutdown system down  4.4.0-87-generic Sat Sep  2 11:32 - 08:26 (1+20:53)   
shutdown system down  4.4.0-87-generic Fri Sep  1 20:17 - 08:28  (12:11)

wtmp begins Fri Sep  1 20:17:36 2017

查询本机过去处于 开机状态 的时段

代码语言:javascript
复制
last -x reboot
代码语言:javascript
复制
reboot   system boot  4.4.0-87-generic Tue Sep 26 08:15 - 08:30  (00:15)    
reboot   system boot  4.4.0-87-generic Sat Sep 23 08:15 - 22:00  (13:45)    
reboot   system boot  4.4.0-87-generic Sat Sep 23 08:09 - 08:15  (00:05)    
reboot   system boot  4.4.0-87-generic Sat Sep 23 08:02 - 08:08  (00:06)    
reboot   system boot  4.4.0-87-generic Sat Sep 23 07:59 - 08:02  (00:02)    
reboot   system boot  4.4.0-87-generic Fri Sep  8 08:15 - 11:33  (03:17)    
reboot   system boot  4.4.0-87-generic Thu Sep  7 08:13 - 17:34  (09:20)    
reboot   system boot  4.4.0-87-generic Wed Sep  6 14:11 - 21:46  (07:34)    
reboot   system boot  4.4.0-87-generic Wed Sep  6 07:50 - 14:09  (06:19)    
reboot   system boot  4.4.0-87-generic Tue Sep  5 08:01 - 21:00  (12:58)    
reboot   system boot  4.4.0-87-generic Mon Sep  4 08:26 - 17:31  (09:04)    
reboot   system boot  4.4.0-87-generic Sat Sep  2 08:28 - 11:32  (03:03)    

wtmp begins Fri Sep  1 20:17:36 2017


本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2017年09月23日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • shutdown
    • sudo shutdown [-h/-r/ ] [now/+10/22:00]
    • reboot
      • sudo reboot
      • last
        • 查询本机过去处于 关机状态 的时段
          • 查询本机过去处于 开机状态 的时段
          领券
          问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档