← Back to context

Comment by qbasic_forever

4 years ago

Nothing protects against rm -rf by design. You shouldn't use it to blindly clean up and delete files (unless as a last resort or some very specific and careful use case). Just use plain old rm and feed it the explicit list of files to delete, which forces you to actually look at what you're about to do.

> Nothing protects against rm -rf by design

You mean, other than backups? Including editor backups, in a separate directory.