find: -exec rm {} \; vs. -delete - why is the former widely . . . The -exec rm is not recommendable on many systems, for reasons I gave - lack of support, or a desire to restrict process count "widely recommended" does not mean ideal for all circumstances, and failing to address that assumption seems irresponsible
file recovery - How to undo `rm -r *`? - Super User There is a program called foremost that will try to recover various types of files based on their magic byte If all that was lost in the rm -r is the metadata (filenames, modification times) then you should be able to recover some of the data Although you'll have to then go through each file and rename it to something meaningful again Good luck
What is the difference between rm -r and rm -f? - Super User What do you mean they give the same result? rm -r emptydir removes that directory, rm -f emptydir does not These are two completely different command line options, each doing whatever its documentation says is doing
rm - Removing rw-r--r-- root wheel restricted files in macOS leave . . . Here's the output of a sudo rm -Rf Previous\ System : rm: datadetectors: Permission denied override rw-r--r-- root wheel restricted for dyld dyld_shared_cache_x86_64 map? I'm under the impression the restricted relates to SIP ? I can't figure why it would protect Previous System since that's not in use though…