瀏覽代碼
Update README.md
pull/39/head
lbonanomi
5 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 4AEE18F83AFDEB23
共有
1 個文件被更改,包括
1 次插入 和
1 次删除
-
README.md
|
|
@@ -1229,7 +1229,7 @@ who -b |
|
|
|
|
|
|
|
###### Detect a user sudo-su'd into the current shell |
|
|
|
|
|
|
|
``` |
|
|
|
```bash |
|
|
|
[[ $(who -m | awk '{ print $1 }') == $(whoami) ]] || echo "You are su-ed to $(whoami)" |
|
|
|
``` |
|
|
|
|
|
|
|