Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ du(C) — Xenix 2.3.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     DU(C)                    XENIX System V                     DU(C)



     Name
          du - Summarizes disk usage.

     Syntax
          du [ -afrsu ] [ names ]

     Description
          du gives 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.

          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.

          The -f option causes du to display the usage of files in the
          current file system only.  Directories containing mounted
          file systems will be ignored.  The -u option causes du to
          ignore files that have more than one link.

          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.

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

     Notes
          If the -a option is not used, nondirectories 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 in them will get an incorrect block count.

          This utility reports sizes in 512 byte blocks.  Systems
          which define a block as 1024 characters, the size of files
          containing 511 or fewer bytes to 1 block.  du interprets 1
          block from a 1024 byte block system as 2 of its own 512 byte
          blocks.  Thus a 500 byte file is interpreted as 2 blocks
          rather than 1.  Refer to the machine(HW) manual page for the
          block size used by your system.









     Page 1                                           (printed 8/7/87)



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