du

NAME

du - Windows command-line utility to displays disk usage

SYNOPSIS

du [-a | -s] [-k] [-x] [-r] [file...]

DESCRIPTION

The du(1w) utility displays the number of blocks for a specified file. If the file operand is a directory, du displays the number of blocks occupied by the files in the directory, and recursively for all directories within the specified directory.

When du cannot access files or directories, it reports an error (if the -r option is specified), and the final exit status is affected. By default, file size is written in 512-byte units, rounded up to the next 512-byte unit.

The du utility supports the following options:

No option
Reports the size of the directory, and recursively for all directories within the specified file.
-a
In addition to the default output, the -a option reports the size of each file, including the files in the subdirectories of the specified file. Regardless of the presence of the -a option, nondirectories given as file operands are always listed.
-k
Writes the file size in 1,024-byte units, rather than the default 512-byte units.
-r
Generates messages about files and directories that cannot be accessed.
-s
Reports the total sum for each of the specified files instead of the default output.
-x
Evaluates only those files that have the same device as file.

DIAGNOSTICS

Possible exit-status values are:

0
Successful completion
1
Failure