Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought



  du(8)                               CLIX                               du(8)



  NAME

    du - Summarizes disk usage

  SYNOPSIS

    du [-sar] [name ... ]

  FLAGS

    -s   Causes only the grand total (for each of the specified names) to be
         given.

    -a   Causes an output line to be generated for each file.

         If neither -s or -a is specified, an output line is generated for
         each directory only.

    -r   Will cause du to generate messages about directories that cannot be
         read, files that cannot be opened, and so forth, rather than being
         silent (the default).

  DESCRIPTION

    The du command reports the number of blocks contained in all files and
    (recursively) directories within each directory and file specified by the
    names argument.  The block count includes the indirect blocks of the file.
    If names is missing, the current directory is used.

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

  EXAMPLES

    1.  To display a disk usage grand total for the directory tree starting at
        the current directory, enter the following:

        du -s .


    2.  To display disk usage for each file and subdirectory under /usr/lib,
        use this command line:

        du -a /usr/lib


  CAUTIONS

    If the -a flag is not used, nondirectories given as arguments are not
    listed.

    If there are links between files in different directories where the



  2/94 - Intergraph Corporation                                              1






  du(8)                               CLIX                               du(8)



    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.  (See Chapter
    5, File System Administration, in the System Administrator's Guide)

  EXIT VALUES

    The du command exits with a nonzero value of if it fails.

  RELATED INFORMATION

    Chapter 5, ``File System Administration'', System Administrator's Guide









































  2                                              Intergraph Corporation - 2/94




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