1. Markus Zapke-Gründemann
  2. quotachecker


quotachecker /

Filename Size Date modified Message
645 B
2.2 KB
51 B
909 B

Folder Quota Checker

This program returns the quota of 1st level sub folders in a directory using the du command (available on all *nix platforms).


If no start directory is given all folders in the current one will be checked by default:

$ qcheck
./folder-0   4
./folder-1   920
./folder-9   8248
.            41264

Choose folders

Sometimes it is required to get the quota of a defined subset of folders.

It is possible to give foldernames as arguments:

$ qcheck folder-1 folder-2
./folder-1   920
./folder-2   120

This method only make sense for a cupple of folders. A greater folderlist can be given by a textfile. The foldernames shoud be written line by line in the textfile. To use it give the option -t and than the filename like this:

$ qcheck -t folder_set.txt

If the folder dosent exist a "DoesentExistException" will show you that for every missing Folder.


By default the result is written to the standard output in bit-format.

Each folder-quota will be presented in one line by default:

$ qcheck
./folder-0   4
./folder-1   920
./folder-9   8248
.            41264

The output can also converted to a human readable form with the -r option:

$ qcheck -r
./folder-0 4,0K
./folder-1 920K
./folder-9 8,1M
.           41M


If the fileoutput is enabled with the option -f the output is written to a csv-file. If no parameter for the file name is given the name of the file is "output.csv". The file will be created if it does not exists.

If the file already exists, the new content will be saved as a new column in the document. The name of the column contains the date like YYMMDD:

Example CSV output
folders 111205 120305
folder-1 0K 128K
folder-2 32M 132M
folder-3 980M 1.124G

If the column already exists the quotachecker will override the column by default. If you dont whant to overwrite the already existing column you can use the -o option to leave the column unaffected.