Created
May 11, 2017 19:21
-
-
Save benmezger/222359c5f3d5b061a579554cf44a4bf3 to your computer and use it in GitHub Desktop.
If a root user is executing `rm`, make sure it does it safe.
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
[ $UID = 0 ] && \ | |
alias rm='rm -i' && \ | |
alias mv='mv -i' && \ | |
alias cp='cp -i' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment