Re:Recovering deleted files using grep
by koevet on Thursday August 19, 2010 @05:15PM
(#1618687)
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)
[ Parent
| on HN ]
Re:Recovering deleted files using grep
by telemachos on Thursday August 19, 2010 @05:28PM
(#1618722)
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'