Last active
December 10, 2021 16:58
-
-
Save ejlevin1/ba2c9640c90c5469e9047b23467c8b0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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