The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<html><head><title>du</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >
</head>
<body class='pod'>
<!--
  generated by Pod::Simple::HTML v3.01,
  using Pod::Simple::PullParser v2.02,
  under Perl v5.008002 at Thu Aug  5 13:56:17 2004 GMT.

 If you want to change this HTML document, you probably shouldn't do that
   by changing it directly.  Instead, see about changing the calling options
   to Pod::Simple::HTML, and/or subclassing Pod::Simple::HTML,
   then reconverting this document from the Pod source.
   When in doubt, email the author of Pod::Simple::HTML for advice.
   See 'perldoc Pod::Simple::HTML' for more info.

-->

<!-- start doc -->
<a name='___top' class='dummyTopAnchor' ></a>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="NAME"
>NAME</a></h1>

<p><b>du</b> - display disk usage statistics</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="SYNOPSIS"
>SYNOPSIS</a></h1>

<p><b>du</b> [<b>-H</b> | <b>-L</b> | <b>-P</b>] [<b>-a</b> | <b>-s</b>] [<b>-cklrx</b>] [<i>file</i> ...]</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p>The <b>du</b> utility displays the file system block usage for each file argument and for each directory in the file hierarchy rooted in each directory argument.
If no file is specified,
the block usage of the hierarchy rooted in the current directory is displayed.</p>

<p>The options are as follows:</p>

<p><b>-H</b> Symbolic links on the command line are followed.
(Symbolic links encountered in the tree traversal are not followed.)</p>

<p><b>-L</b> All symbolic links are followed.</p>

<p><b>-P</b> No symbolic links are followed.</p>

<p><b>-a</b> Display an entry for each file in the file hierarchy.</p>

<p><b>-k</b> By default,
du displays the number of blocks as the number of 512-byte blocks.
If the <b>-k</b> flag is specified,
the number displayed is the number of 1024-byte blocks.
Partial numbers of blocks are rounded up.</p>

<p><b>-c</b> Display the grand total after all the arguments have been processed.</p>

<p><b>-l</b> Count the size of all files,
even if they have appeared already in another hard link.</p>

<p><b>-s</b> Display only the grand total for the specified files.</p>

<p><b>-r</b> Generate messages about directories that cannot be read,
files that cannot be opened,
and so on.
This is the default case.
This option exists solely for conformance with X/Open Portability Guide Issue 4 (``XPG4&#39;&#39;).</p>

<p><b>-x</b> Filesystem mount points are not traversed.</p>

<p><b>du</b> counts the storage used by symbolic links and not the files they reference unless the <b>-H</b> or <b>-L</b> option is specified.
If either the <b>-H</b> or <b>-L</b> options are specified,
storage used by any symbolic links which are followed is not counted or displayed.</p>

<p>Files having multiple hard links are counted (and displayed) a single time per <b>du</b> execution.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="ENVIRONMENT"
>ENVIRONMENT</a></h1>

<p>If the environment variable BLOCKSIZE is set,
and the <b>-k</b> option is not specified,
the block counts will be displayed in units of that size block.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="BUGS"
>BUGS</a></h1>

<p>The directory separator is assumed to be &#39;/&#39;.</p>

<p>The number of blocks reported is based on the size of the file.
This may or may not reflect the actual number of blocks allocated by the file system for the file.</p>

<p><b>du</b> will skip files it shouldn&#39;t if the underlying file system does not support inodes,
and does not always place 0 in the inode field of a stat(2) call.
In this case <b>-l</b> can be specified to skip the inode check and always list all files.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="HISTORY"
>HISTORY</a></h1>

<p>A <b>du</b> command appeared in Version 6 AT&#38;T UNIX.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="AUTHOR"
>AUTHOR</a></h1>

<p>Greg Hewgill &#60;greg@hewgill.com&#62; 1999-03-07</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="COPYRIGHT_and_LICENSE"
>COPYRIGHT and LICENSE</a></h1>

<p>This program is Copyright (c) by Greg Hewgill 1999.</p>

<p>This program is free and open software.
You may use,
copy,
modify,
distribute,
and sell this program (and any modified variants) in any way you wish,
provided you do not restrict others from doing the same.</p>

<!-- end doc -->

</body></html>