mirror of
https://github.com/trimstray/the-book-of-secret-knowledge
synced 2026-01-19 15:58:02 +00:00
/usr/bin/last
This commit is contained in:
@@ -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"
|
||||
```
|
||||
|
||||
___
|
||||
|
||||
Reference in New Issue
Block a user