Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sirn
on Dec 3, 2011
|
parent
|
context
|
favorite
| on:
How do I prevent accidental rm -rf /*?
...or just use `-delete`:
find . -iname "whatever" -delete
Otherwise you're screwed if someone managed to put a file named "/" somewhere in your find directory, which `-delete` has safe-guard for.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: