Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
koevet
on Aug 19, 2010
|
parent
|
context
|
favorite
| on:
Recovering deleted files using grep
Actually, I think that the real great hack here is to alias the rm command to a trashbin script (as suggested at the end of the article)
telemachos
on Aug 19, 2010
|
next
[–]
The danger of aliasing the command itself (the bare 'rm') is that you come to count on the safety of the alias. Then you work one day on a friend's or coworker's machine and...BOOM.
What I do instead is make a nearby (and simple) alias. For example:
rmi='rm -i'
abhiomkar
on Aug 19, 2010
|
prev
[–]
This can be achieved using trash-cli
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: