Some faced the fact that they accidentally deleted a file using the command rm. Standard rm doesn't ask for confirmation, for forcing confirmation must be called with the option -i to run interactive. You can use an alias for rm to by adding:
alias rm='rm -i'
to ~/.bashrc. I would advise to do this for the commands cp and mv as well.
alias cp='cp -i'
alias mv='mv -i'
To make this standard for every user, add these lines to /etc/bashrc.
These aliases will be available the next time you logon.
Tags:
