termtrick.com
Run
API
Facebook
Twitter
LinkedIn
Copy link
Detect a user sudo-su'd into the current shell
last
Trick copyright:
The Book of Secret Knowledge <
https://github.com/trimstray/the-book-of-secret-knowledge
>
[[ $(who -m | awk '{ print $1 }') == $(whoami) ]] || echo "You are su-ed to $(whoami)"
click the source code to copy
install
last
on any operating system with
command-not-found.com