sindresorhus / guides

A collection of succinct guides - Public Domain
2.47k stars 458 forks source link

Question about rm -fr #37

Closed ioab closed 8 years ago

ioab commented 8 years ago

Hi, and thanks for the great collection.

I was wondering if there's a safety option against using 'rm -fr' ? It seems that bash steps mentioned in "How not to rm yourself", and 'rm -i' is bypassed with this command.

sindresorhus commented 8 years ago

This is explained in the guide. There are other things you can do to protect yourself, but in the end, the only real protection is to have a backup. I would recommend using trash whenever you can.