DU(1)
NAME
du − summarize disk usage
SYNOPSIS
du [ −sabr ] [ −t type ] [ names ]
DESCRIPTION
Du gives the number of 512-byte blocks contained in all files and (recursively) directories within each directory and file specified by the names argument. The block count includes the indirect blocks of the file. If names is missing, . is used.
The optional argument −s causes only the grand total (for each of the specified names) to be given. The optional argument −a causes an entry to be generated for each file. Absence of either causes an entry to be generated for each directory only.
The −b argument prints out the number of blocks the swap system is currently using and the name of the directory the swap system is associated with.
Du is normally silent about directories that cannot be read, files that cannot be opened, etc. −r causes du to generate messages in such instances.
Du normally reports disk usage for the entire directory hierarchy below the given names. The −t type argument can be used to restrict reporting to file systems of the specified type. The accepted types are hfs, cdfs, and nfs (see checklist(4)). Multiple −t type options can be specified.
A file with two or more links is only counted once.
EXAMPLES
The command:
du -r
displays disk usage for the current working directory and all directories below it, generating error messages for unreadable directories.
The command:
du -t hfs /
displays disk usage for the entire file system excluding any cdfs or nfs mounted file systems.
WARNINGS
If the −a option is not used, non-directories given as arguments are not listed.
Files with holes in them will get an incorrect block count.
SEE ALSO
STANDARDS CONFORMANCE
du: SVID2, XPG2, XPG3
Hewlett-Packard Company — HP-UX Release 7.0: Sept 1989