diskuse: tool for ProFTPD module mod_quotatab



This program is distributed with the mod_quotatab module for ProFTPD 1.2. It is used to calculate the amount of disk space currently used by a given user and/or group.

The most current version of diskuse can be found at:

  http://www.castaglia.org/proftpd/

Author

Please contact TJ Saunders <tj at castaglia.org> with any questions, concerns, or suggestions regarding this program.



Usage

The following describes the common usage of the diskuse tool. The options supported are described in more detail later.

Usage of this tool is fairly straightforward: choose the directory (or directories) to scan, and the user or group for whom you wish to calculate disk usage:

  diskuse /home /usr /tmp --user=bob
The --K, --M, and --G options can be used to display the disk usage calculated in kilobytes, megabytes, or gigabytes, respectively.



Options

The following is the output from running diskuse --help:
usage: diskuse [options] dir1 dir2 ... dirN

 diskuse calculates the amount of disk space used underneath the given
 directory (or directories).  Either a --group or a --user option is required.
 If both are used, only files whose ownership matches both the given name and
 group will be added to the disk usage sum.

 Options:

  --G          Display the number of bytes in units of gigabytes.  The default
               number is in bytes.

  --K          Display the number of bytes in units of kilobytes.  The default
               number is in bytes.

  --M          Display the number of bytes in units of megabytes.  The default
               number is in bytes.

  --dir-tally  Count the size of directories toward the disk usage sum.  The
               default is to consider regular files only.

  --group      Count files owned by this group in the disk usage sum.

  --help       Display this message.

  --user       Count files owned by this user in the disk usage sum.

  --verbose    Display diagnostic output while diskuse is running.



Author: $Author: tj $
Last Updated: $Date: 2002/04/27 15:23:25 $


© Copyright 2000-2002 TJ Saunders
All Rights Reserved