Name

duke - short multilevel size and age summary


Synopsys

duke [-bkmg] [-d n] [-s dir] [-e] [dir]


Description

Most people use du to see which files and subdirectories are the biggest to find where their disk space crunch comes from. This is only one level deep, and often takes a long time for each level where you do it. Another piece of relevant information when deciding what to move to a different storage medium is the age of the offending files. duke offers a short multilevel size and age summary to help you quickly find the largest, oldest stuff on your disk.


Options

-bkmg

show sizes in bytes, kb, Mb, or Gb, respectively. (default is human-readable)

-d n

amount of detail: show entities at most total/n in size (by necessity this is a bit more than the number of items displayed)

-/code

like du, dereference symbolic links when counting size.

-s dir

skip dir. This option may be used multiple times.

-e

aggregate files by extension. On by default, use again to disable (e.g. for faster evaluation of results).

If a file that's not big enough to display on its own has a period in the name (but not at the beginning), then everything after the last period is assumed to be a filename extension (often indicating type -- e.g. pdf or jpg)

After listing all of the files and directories which did make the detail cutoff, duke will then list aggregates of file extensions which did not make the cutoff individually, but do make it together. These extensions can propagate up the directory hierarchy, and "*/"-es will be displayed for each layer that they propagate. Once displayed, they will not be taken into account for shallower directory entries. Displayed single-file entries also do not count toward the aggregate for that directory.

It might be considered a bug that these appear after all single-file entries for a directory even when in aggregate they are larger than some of the single-file entries that appeared. In reality it is probably more worthwhile to deal with large single files first, so I'm tempted to call this a feature.


See Also

du(1)


Author

Gregory A. Marton http://csail.mit.edu/~gremio/


Download

This program is distributed under the GNU General Public License: http://www.gnu.org/copyleft/gpl.html
The source: http://csail.mit.edu/~gremio/code/duke.pl