소스 검색

Merge pull request #2 from lbonanomi/who

test if the current user is sudo-su'd into this session
pull/39/head
lbonanomi 5 년 전
committed by GitHub
부모
커밋
2e28c6c0da
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. +6
    -0
      README.md

+ 6
- 0
README.md 파일 보기

@@ -1227,6 +1227,12 @@ ___
who -b
```

###### Detect a user sudo-su'd into the current shell

```
[[ $(who -m | awk '{ print $1 }') == $(whoami) ]] || echo "You are su-ed to $(whoami)"
```

___

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


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