extasia.org/code/duchk/

duchk(1)

Please note that duchk was written for Linux, so it may not work for other unixes. However, I'd be happy to port it upon request.

examples        source code        man page source code        changelog

NAME

duchk - list disk usage in a directory or directory tree

SYNOPSIS

duchk [ options ] Directory

DESCRIPTION

Examine a directory or a directory tree and list files and their sizes in kbytes. Sort in descending size order. Display all files at least 1 kbyte in size unless a minimum size is otherwise indicated.

-h, --help
List usage
-r, --recursive
Treat Directory as the root node of a directory tree. Report on files in entire directory tree. The default is not to consider Directory as a tree, and not to report on subdirectories.
-s, --size Size
Limit display of files and sizes to those files whose size is greater then or equal to Size kbytes. The default is to display information for all files of at least 1 kbyte in size.

Directories are displayed with trailing slashes.

If the recursive option is selected, duchk will examine the given Directory and then recursively examine subdirectories of subdirectories... Each level of subdirectory examined will be indented a level for readability.

Please note that the default behavior of duchk is to display information on all files greater than or equal to 1 kbyte in size. This may cause copious amounts of output for some directories or trees. The --size option may be used to limit this output.

The minimum size a file must have to be included in duchk output is determined by (in order of precedence):

  1. A valid argument to the --size option. A valid argument will consist only of digits.
  2. A valid value in the environment variable DUCHK_SIZE. A valid value will consist only of digits.
  3. The default value of 1 kbyte

Newlines and funny characters in file names should not be a problem. Whitespace in file names is escaped with backslashes in duchk output. Non-printable characters are output as escaped octal values.

AUTHOR

Written by David Alban <extasia@extasia.org>

REPORTING BUGS

Report bugs to <extasia@extasia.org>.

COPYRIGHT

Copyright © 2003-2004 David Alban
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO

du(1)



Last modified: $Date: 2004/02/21 20:05:22 $