Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ du(1) — GL2 W2.5r1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

DU(1)  —  Silicon Graphics

NAME

du − summarize disk usage

SYNOPSIS

du [ −Lars ] [ names ]

DESCRIPTION

du gives the number of kbytes (one kbyte equals 1024 bytes) contained in all files, directories within each directory and files specified by the names argument.  It also recursively searches directories within each directory.  The count does not include indirect blocks.  If names is missing, the current directory, ., 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. 

du is normally silent about directories that cannot be read, files that cannot be opened, etc.  The −r option will cause du to generate messages in such instances. 

The optional argument −L causes symbolic links to be followed (by default they are not followed). 

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

EXAMPLE

du dir1 dir2

produces a count of the number of kbytes in each of the directories.  In order to see how many kbytes are in each file, the −a option must be used. 

BUGS

If the −a option is not used, non-directories given as arguments are not listed. 

If there are too many distinct linked files, du will count the excess files more than once. 

Files with holes (holey files) are counted incorrectly. 

Version 2.5r1  —  October 29, 1986

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