trisquel 7 - make rm ask for confirmation
- Login o registrati per inviare commenti
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)
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
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?!
- Login o registrati per inviare commenti