mirror of
https://github.com/trimstray/the-book-of-secret-knowledge.git
synced 2024-12-18 17:36:14 +00:00
Update README.md
This commit is contained in:
parent
2e28c6c0da
commit
b8c363ec7e
@ -1229,7 +1229,7 @@ who -b
|
|||||||
|
|
||||||
###### Detect a user sudo-su'd into the current shell
|
###### Detect a user sudo-su'd into the current shell
|
||||||
|
|
||||||
```
|
```bash
|
||||||
[[ $(who -m | awk '{ print $1 }') == $(whoami) ]] || echo "You are su-ed to $(whoami)"
|
[[ $(who -m | awk '{ print $1 }') == $(whoami) ]] || echo "You are su-ed to $(whoami)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user