Some faced the fact that they accidentally deleted a file using the command
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'
~/.bashrc. I would advise to do this for the commands
mv as well.
alias cp='cp -i'
alias mv='mv -i'
To make this standard for every user, add these lines to
These aliases will be available the next time you logon.