瀏覽代碼

/usr/bin/last

pull/40/head
lbonanomi 5 年之前
父節點
當前提交
39192cfb1b
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      README.md

+ 1
- 1
README.md 查看文件

@@ -1251,7 +1251,7 @@ ___
###### Was the last reboot a panic?

```bash
(last -x -f $(ls -1t /var/log/wtmp* | head -2 | tail -1);last -x -f /var/log/wtmp) | grep -A1 reboot | head -2 | grep -q shutdown && echo "clean reboot" || echo "panic reboot"
(last -x -f $(ls -1t /var/log/wtmp* | head -2 | tail -1); last -x -f /var/log/wtmp) | grep -A1 reboot | head -2 | grep -q shutdown && echo "Expected reboot" || echo "Panic reboot"
```

___


Loading…
取消
儲存