We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
| Hack: |
|
Bringing Trash-Awareness to rm
|
| Subject: |
|
Unwise to replace rm |
| Date: |
|
2003-05-13 14:53:49 |
| From: |
|
anonymous2
|
Response to: Unwise to replace rm
|
The Finder's "Empty Trash" is maddening when you are
trying to get rid of several thousand little files in a directory tree. "rm -fr" is so much nicer.
Funny, it's the other way around for me; I'd rather be able to move an entire directory into the trash in one stroke (rather than contending with an 'rm -rf' for disk access), then empty the trash when I step away from the system.
On my debian and IRIX systems I've gotten so lazy that I just move directories into /tmp and let them sit until the next reboot.
Unfortunately (sic), the kernels nowadays are stable enough that even with big hard drives, /tmp fills up before a crash/hang/forced reboot. This is the kind of problem I want to have, though :-)
|