Skip to content

Instantly share code, notes, and snippets.

@ejlevin1
Last active December 10, 2021 16:58
Show Gist options
  • Save ejlevin1/ba2c9640c90c5469e9047b23467c8b0e to your computer and use it in GitHub Desktop.
Save ejlevin1/ba2c9640c90c5469e9047b23467c8b0e to your computer and use it in GitHub Desktop.
sudo su
unset HISTFILE
cat /etc/os-release
exit
history
# Check History:
unset HISTFILE
sudo su
unset HISTFILE
echo "$(whoami) history:" && cat ~/.bash_history | tail -n 2 && exit
echo "$(whoami) history:" && cat ~/.bash_history | tail -n 2
# Terminal Command (as root)
sudo su
unset HISTFILE
salt '*dock*' cmd.shell 'which docker'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment