이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
도움말
로그인
david.wurm
/
InternetServicesBook
의 미러
https://github.com/trimstray/the-book-of-secret-knowledge
보기
1
좋아요
0
포크
0
코드
릴리즈
0
활동
소스 검색
test if the current user is sudo-su'd into this session
- signed-off-by: lbonanomi <lbonanomi@gmail.com>
pull/39/head
lbonanomi
5 년 전
부모
f42515078a
커밋
985714befd
1개의 변경된 파일
과
6개의 추가작업
그리고
0개의 파일을 삭제
분할 보기
Diff Options
Show Stats
Download Patch File
Download Diff File
+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)
쓰기
미리보기
불러오는 중...
취소
저장