Print entries for each ®le encountered in the directory hierarchies in addition to the normal output.
For each name operand that is a directory for which ®le system swap has been enabled, print the number of blocks the swap system is currently using.
Gives the block count in 1024-byte blocks.
Print messages about directories that cannot be read, ®les that cannot be accessed, etc. du is normally silent about such conditions.
Print only the grand total of disk usage for each of the speci®ed name operands.
Restrict reporting to only those ®les that have the same device as the ®le speci®ed by the name operand. Disk usage is normally reported for the entire directory hierarchy below each of the given name operands.
Restrict reporting to ®le systems of the speci®ed type. (Example values for type are hfs, cdfs, nfs, etc.) Multiple -ttype options can be speci®ed. Disk usage is normally reported for the entire directory hierarchy below each of the given name operands.

du(1)

du(1)

NAME

du - summarize disk usage

SYNOPSIS

du [-a-s] [-bkrx] [-ttype ] [ name ... ]

DESCRIPTION

The du command gives the number of 512-byte blocks allocated for all ®les and (recursively) directories within each directory and ®le speci®ed by the name operands. The block count includes the indirect blocks of the ®le. A ®le with two or more links is counted only once. If name is missing, the current working directory is used.

By default, du generates an entry only for the name operands and each directory contained within those hierarchies.

Options

The du command recognizes the following options:

-a

-b

-k -r

-s -x

-ttype

EXAMPLES

Display disk usage for the current working directory and all directories below it, generating error messages for unreadable directories:

du -r

Display disk usage for the entire ®le system except for any cdfs or nfs mounted ®le systems:

du -t hfs /

Display disk usage for ®les on the root volume (/) only. No usage statistics are collected for any other mounted ®le systems:

du -x /

WARNINGS

Block counts are incorrect for ®les that contain holes.

SEE ALSO

df(1M), bdf(1M), quot(1M).

STANDARDS CONFORMANCE

du: SVID2, SVID3, XPG2, XPG3, XPG4

d

HP-UX Release 11i: December 2000

− 1 −

Section 1193