trisquel 7 - make rm ask for confirmation

2 replies [Last post]
fchmmr
Offline
Joined: 05/14/2013

rm foo
asks for confirmation
rm -rf foo
doesn't
that was behaviour in trisquel 6. 7 lets you use rm without confirm
add this to the end of your .bashrc:
alias='rm -i'
do it now. or you might regret it later ;)
(rm -rf still won't ask for confirmation, which is fine)
since -f (in -rf) means "force" (no confirm)

levlaz

I am a member!

Offline
Joined: 01/29/2013

Hello,

Just a note, if you are trying to remove files that you do not own, you will still not be able to. However, I agree that it is very important to be very careful with rm -rf.

Best,
Lev

lembas
Offline
Joined: 05/13/2010

I think having such an alias is not a good idea. Sooner or later you'll be sitting at a box which doesn't hold your hand. Besides, we all have fresh backups, right, right?!