Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ du(1M) — SunOS 5.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

du(1M)

NAME

du − summarize disk usage

SYNOPSIS

du [−asrk] [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 only counted once. 

OPTIONS

−a An ouput line is generated for each file. 

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

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

−k Print allocation in kilobytes. 

SEE ALSO

SunOS 5.1 Routine System Administration Guide

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. 

SunOS 5.2  —  Last change: 23 May 1991

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