Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save benmezger/222359c5f3d5b061a579554cf44a4bf3 to your computer and use it in GitHub Desktop.
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.
[ $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