Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Question | 21 comments | Create New Account
Click here to return to the 'Question' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Question
Authored by: gshenaut on Nov 08, '06 07:35:42AM

Something I've wondered about is whether there is some way to empty the trash oldest-first and stop when it reaches a certain size. By oldest, I don't mean the age of the file, I mean the longest residence in Trash.

Probably a script that used ls -cr and du -s would do the trick, I haven't tried it. Ideally, this could be added to the "Actions" of all Trash folders. No idea how to do that.

Personally, I wouldn't want to make this or any other trash-emptying automatic; to me that defeats the idea of a trash can. But I would like it if there could be a bit more control over the emptying process.

Greg Shenaut



[ Reply to This | # ]