DU

Section: User Commands (1)
Index Return to Main Contents

BSD mandoc
 

NAME

du - Display disk usage statistics  

SYNOPSIS

du [-a | -s ] [-x ] [file ... ]  

DESCRIPTION

The du 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. The number of blocks are in the same units as that returned by the stat(2) system call, i.e. 512-byte blocks. Partial numbers of blocks are rounded up.

The options are as follows:

-a
Display an entry for each file in the file hierarchy.
-s
Display only the grand total for the specified files.
-x
Filesystem mount points are not traversed.

If file is a symbolic link referencing an existing file, the file referenced by the link is reported on instead of the link itself.

Files having multiple hard links are counted (and displayed) a single time per du execution.  

ENVIRONMENTAL VARIABLES

BLOCKSIZE
If the environmental variable BLOCKSIZE is set, the block counts will be displayed in units of that size block.

 

SEE ALSO

df(1), quot(8)  

HISTORY

A du command appeared in AT&T System v6 .


 

Index

NAME
SYNOPSIS
DESCRIPTION
ENVIRONMENTAL VARIABLES
SEE ALSO
HISTORY

This document was created by man2html, using the manual pages.
Time: 06:34:19 GMT, May 19, 2025