safer use of the shell / terminal
I included following lines into my ~/.bashrc to have a more secure shell experience.
1) Do not remove (unlink) a file, but move it to the trash-can. You have to install trash-cli,
sudo apt-get install trash-cli
alias rm="echo 'NOTE: !! not removing, but moving to trash-can!! '; trash-put"
If you want to use the normal rm command, use
/bin/rm file1ToRemove.txt file2ToRemove.png
2) ask before overwriting a file, if you accidentaly copy or move a file with the same name.
alias cp="cp -i" # ask before overwriting a file alias mv="mv -i" # ask before overwriting a file