ソースを参照
Update README.md
pull/39/head
lbonanomi
5年前
committed by
GitHub
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
-
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)" |
|
|
|
``` |
|
|
|
|
|
|
|