Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
weaksauce
on Dec 3, 2011
|
parent
|
context
|
favorite
| on:
How do I prevent accidental rm -rf /*?
One thing that you can do is ls what you want to delete and then do a ^ls^rm -rf to replace ls with rm -rf in the last command if satisfied.
you can even do a ls -rf ./somedirectory and then just do ^ls^rm at least you can in bash on os x.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
you can even do a ls -rf ./somedirectory and then just do ^ls^rm at least you can in bash on os x.