Use the DISKUSE command to display the amount of disk space used by a directory. You must have traverse directory entries (TD) and read directory entries (RD) permissions to directories you want to report on.
 |
 |  |
 |
 | NOTE:
The REPORT command does not provide detailed line items for directories below accounts.
|
 |
 |  |
 |
For example:
:DISKUSE /CYC
SECTORS
TREE LEVEL DIRECTORY
BELOW
950 200 /CYC/
|
This command displays the disk space used by directory /CYC. Each of the columns contains information about the directory:
- TREE
contains the total number of sectors used by the
directory listed. This includes space used by the directory
itself, all files in the directory, and all space used by
subdirectories and files in the subtree below the directory.
- LEVEL BELOW
shows the number of sectors allocated to
all files and directories one level below the named
directory. It does not include the space used by the
directory itself or by the rest of the subtree.
- DIRECTORY
displays the name of the directory in HFS
format (for example, /MYACCT/MYGROUP).
If you add up all of the tree'd items you will sum to the
total.
You can also report the disk space used by a directory and all subtrees below it. If you specify a directory ending with a / and use HFS syntax or use the TREE option, the command reports the amount of space used by it and all directories in it.
For example:
:DISKUSE /CYC/CELESTE/
SECTORS
TREE LEVEL DIRECTORY
BELOW
160+ 128 /CYC/CELESTE/dir1/subdir1/
384 224 /CYC/CELESTE/dir1/
192+ 0 (files directly below specified directory)
608 224 /CYC/CELESTE/(32+)
|
This command displays the disk space used by the directory /CELESTE and all the subdirectories: dir1 and dir2. Including the TREE option has the same effect as including a slash at the end of a pathname. For example:
:DISKUSE /CYC/CELESTE ;TREE
|
The output is the same as that for the last example.
Sometimes the number of sectors under the TREE column are followed by a plus sign. This means that the amount refers to directories that are one level below the target
directory.
The DISCUSE system-provided UDC works exactly like the
DISKUSE command except that it warns you to use the
DISKUSE command in the future.
Refer to the MPE/iX Commands Reference Manual, Vol. I
(32650-90003) for details on the syntax of the DISKUSE
command and the DISCUSE UDC.