3 ms·
I have nightmares about doing rm -rf * in my home dir. With this it's a bit better, but you could still do rm -rf .* in your home dir and lose your hidd
by soheil 4y ago
I have nightmares about doing
rm -rf *
in my home dir. With this it's a bit better, but you could still do
rm -rf .*
in your home dir and lose your hidden .trash dir too.
- naniwaduni 4y agoI make a habit of rm -fr ../current_dir_name/* when trying to delete a broad glob, just to at least make sure to sanity-check deleting from the right place.
- soheil 4y agohmm I typically do tab completion so I'd be nervous just doing a quick rm -rf ../(mis-KeyPress) [TAB + Enter] and watching the entire parent dir getting wiped out.
- deleted 4y ago[deleted]
- pabs3 4y agoI've done that before, now I have a custom shell function that recursively lists the files to be deleted and forces me to confirm that they should be deleted.