Skip to content

A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.

Update README.md

lbonanomib8c363ec7e7d
diff --git a/README.md b/README.md
index 9a6178c..78036d1 100644
--- a/README.md
+++ b/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)"
```