소스 검색

Merge pull request #40 from lbonanomi/last

find panic reboots with /usr/bin/last
pull/41/head
@trimstray 5 년 전
committed by GitHub
부모
커밋
06c8eb3879
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. +11
    -0
      README.md

+ 11
- 0
README.md 파일 보기

@@ -744,6 +744,7 @@ Linux Security Expert</b></a> - trainings, howtos, checklists, security tools an
* [tr](#tool-tr)
* [chmod](#tool-chmod)
* [who](#tool-who)
* [last](#tool-last)
* [screen](#tool-screen)
* [du](#tool-du)
* [inotifywait](#tool-inotifywait)
@@ -1246,6 +1247,16 @@ who -b

___

##### Tool: [last]

###### 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 "Expected reboot" || echo "Panic reboot"
```

___

##### Tool: [screen](https://en.wikipedia.org/wiki/GNU_Screen)

###### Start screen in detached mode


불러오는 중...
취소
저장