% $Id: du.tex 1.3 1998/01/06 00:28:06 brian Exp $

\chapter{du---Directory Usage}

The \textbf{du} command calculates the total bytes used by a set of files. For
simplicity, only the files' sizes are calculated: the amount of space
occupied by the disk blocks is not.

\section{Usage}

\verb+du [ -shR ] fspec ...+
\medskip

The sizes of all files that match each file specification are added. The
total size (in bytes) and the total number of matching files are written
to stdout.

By default, ordinary files are included. Specify \texttt{-s} to
include system files and \texttt{-h} to include hidden files.

Specify \texttt{-R} to recurse subdirectories looking for matching
files.

\section{Example}

The \textbf{du} command writes information to stdout in the following
format:

\begin{verbatim}
        533908 bytes in 27 files
\end{verbatim}

