Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ du(1) — HP-UX 8.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

df(1)

bdf(1)

quot(1m)

checklist(4)

du(1)

NAME

du − summarize disk usage

SYNOPSIS

du [−a|−s] [−brx] [−t type] [file...]

DESCRIPTION

du gives the number of 512-byte blocks allocated for all files and (recursively) directories within each directory and file specified by the file operands.  The block count includes the indirect blocks of the file.  A file with two or more links is only counted once.  If file is missing, .  is used. 

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

Options

The options are:

−a Print entries for each file encountered in the directory hierarchies in addition to the normal output. 

−b For each file operand that is a directory for which file system swap has been enabled, print the number of blocks the swap system is currently using. 

−r Print messages about directories that cannot be read, files that cannot be accessed, etc.  du is normally silent about such conditions. 

−s Print only the grand total of disk usage for each of the specified file operands. 

−x Disk usage is normally reported for the entire directory hierarchy below each of the given file operands.  The −x option can be used to restrict reporting to only those files that have the same device as the file specified by the file operand. 

−t type Disk usage is normally reported for the entire directory hierarchy below each of the given file operands.  The −t type argument can be used to restrict reporting to file systems of the specified type. Accepted types are hfs, cdfs, and nfs (see checklist(4)). Multiple −t type options can be specified. 

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 file system except for any cdfs or nfs mounted file systems:

du −t hfs /

Display disk usage for files on the root volume ("/") only.  No usage statistics are collected for any other mounted file systems:

du −x /

WARNINGS

Files with holes in them will get an incorrect block count. 

SEE ALSO

df(1), bdf(1), quot(1m), checklist(4). 

STANDARDS CONFORMANCE

du: SVID2, XPG2, XPG3

Hewlett-Packard Company  —  HP-UX Release 8.05: June 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026