Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ du(1M) — SunOS 5.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

du(1M)

NAME

du − summarize disk usage

SYNOPSIS

du [−arskod] [name ...]

DESCRIPTION

The du command reports the number of 512 byte blocks contained in all files and (recursively) directories within each directory and file specified.  The block count includes the indirect blocks of the file.  If no names are given, the current directory is used. 

If the −a option is not used, non-directories given as arguments are not listed.  If neither −s or −a is specified, an output line is generated for each directory only. 

A file with two or more links is counted only once. 

OPTIONS

−a An output line is generated for each file. 

−r Generates messages about directories that cannot be be read, files that cannot be opened, etc., rather than being silent (the default). 

−s Only the grand total (for each of the specified names) is given. 

−k Print allocation in kilobytes. 

−o Don’t add child directories’ usage to a parent’s total.  Without this option, the usage listed for a particular directory is the space taken by the files in that directory, as well as the files in all directories beneath it.  This option does nothing if −s is used. 

−d Don’t cross filesystem boundaries.  "du -d /" would report usage only on the root partition, for example. 

SEE ALSO

Solaris 2.3 Administering File Systems

NOTES

If there are links between files in different directories where the directories are on separate branches of the file system hierarchy, du will count the excess files more than once. 

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

Sun Microsystems  —  Last change: 23 May 1991

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