I recently installed Ubuntu and find that when I delete things in terminal using
rm file
there is no warning asking me to confirm the step. I did not use the -f flag. It feels vulnerable to accidental deletion in this way. I searched online and didn't find the reason for this. How can I turn on the warning?