du(1)du(1)NAMEdu - summarize disk usage
SYNOPSIS
type] [name]...
DESCRIPTION
The command gives the number of 512-byte blocks allocated for all files
and (recursively) directories within each directory and file specified
by the name operands. The block count includes the indirect blocks of
the file. A file with two or more links is counted only once. If name
is missing, the current working directory is used.
By default, generates an entry only for the name operands and each
directory contained within those hierarchies.
By default, when a symbolic link is encountered on the command line or
in the file hierarchy, will count the size of the symbolic link rather
than the file referenced by the link, and will not follow the link to
another portion of the file hierarchy.
Options
The command recognizes the following options:
Print entries for each file encountered
in the directory hierarchies in addition to the
normal output.
For each name operand that is a directory for which file
system swap has been enabled, print the number of
blocks the swap system is currently using.
If a symbolic link is specified on the command line,
will count the size of the file or file hierarchy
referenced by the link. Unlike the option, it
will not follow symbolic links encountered during
the traversal of the directory hierarchy.
Gives the block count in 1024-byte blocks.
If a symbolic link is specified on the command line or
encountered during the traversal of a file hier‐
archy, will count the size of the file or file
hierarchy referenced by the link.
Print messages about directories that cannot be read,
files that cannot be accessed, and so on. is
normally silent about such conditions.
Print only the grand total of disk usage
for each of the specified name operands.
Restrict reporting to file systems of the specified
type. (Example values for type are and so on.)
Multiple options can be specified. Disk usage is
normally reported for the entire directory hier‐
archy below each of the given name operands.
Restrict reporting to only those files
that have the same device as the file specified
by the name operand. Disk usage is normally
reported for the entire directory hierarchy below
each of the given name operands.
According to the standards, specifying more than one of the mutually-
exclusive options and will not be considered an error. The last option
specified will determine the behavior of the utility.
EXAMPLES
Display disk usage for the current working directory and all directo‐
ries below it, generating error messages for unreadable directories:
Display disk usage for the entire file system except for any or mounted
file systems:
Display disk usage for files on the root volume only. No usage statis‐
tics are collected for any other mounted file systems:
WARNINGS
Block counts are incorrect for files that contain holes.
SEE ALSOdf(1M), bdf(1M), quot(1M), standards(5).
STANDARDS CONFORMANCEdu(1)