[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: --min-size option for du (patch)

From: Pádraig Brady
Subject: Re: --min-size option for du (patch)
Date: Thu, 15 Jan 2009 09:44:07 +0000
User-agent: Thunderbird (X11/20071008)

Paul Chambers wrote:
> I'd like to submit the attached small patch for du. it adds a
> '--min-size' option, which can be used to filter the output to only
> include items of that size or greater.
> I find it useful in locating large folders on disk in one pass, to zero
> in on the worst offenders when disk space is getting low.

That is a very useful feature and is tempting to add.

Personally I only ever directly use du with 1 argument because:
  1. it's awkward to sort --human-readable sizes
  2. it doesn't distinguish files and directories
  3. it doesn't have an "ignore insignificant size" option

1. will hopefully soon be supported by sort
2. can't be done for POSIX reasons apparently
3. your patch, hmm..

I find it more useful to ignore sizes below a certain percentage,
rather than below a certain size, and a script I've been using for
years to do all 3 of the above is: http://www.pixelbeat.org/scripts/dutop


reply via email to

[Prev in Thread] Current Thread [Next in Thread]