Define some safe commands: 

 Create file ~/bin/

  1. alias rm='rm -i' 
  2. alias cp='cp -i' 
  3. alias mv='mv -i' 

Add the following lines to ~/.bashrc

  1. if [ -f ~/bin/ ]; then 
  2.     . ~/bin/ 
  3. fi 

Add the following lines to ~/.profile

  1. if [ -f "$HOME/.bashrc" ]; then 
  2.     . "$HOME/.bashrc" 
  3. fi