*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> du (1)              
Title
Content
Arch
Section
 

Contents


 du(1)                                                                 du(1)




 NAME    [Toc]    [Back]
      du - summarize disk usage

 SYNOPSIS    [Toc]    [Back]
      du [-a|-s] [-bkrx] [-t type] [name ...]

 DESCRIPTION    [Toc]    [Back]
      The du command gives the number of 512-byte blocks allocated for all
      files and (recursively) directories within each directory and file
      specified by the name operands.  The block count includes the indirect
      blocks of the file.  A file with two or more links is counted only
      once.  If name is missing, the current working directory is used.

      By default, du generates an entry only for the name operands and each
      directory contained within those hierarchies.

    Options    [Toc]    [Back]
      The du command recognizes the following options:

           -a             Print entries for each file encountered in the
                          directory hierarchies in addition to the normal
                          output.

           -b             For each name operand that is a directory for
                          which file system swap has been enabled, print the
                          number of blocks the swap system is currently
                          using.

           -k             Gives the block count in 1024-byte blocks.

           -r             Print messages about directories that cannot be
                          read, files that cannot be accessed, etc.  du is
                          normally silent about such conditions.

           -s             Print only the grand total of disk usage for each
                          of the specified name operands.

           -x             Restrict reporting to only those files that have
                          the same device as the file specified by the name
                          operand.  Disk usage is normally reported for the
                          entire directory hierarchy below each of the given
                          name operands.

           -t type        Restrict reporting to file systems of the
                          specified type.  (Example values for type are hfs,
                          cdfs, nfs, etc.) Multiple -t type options can be
                          specified.  Disk usage is normally reported for
                          the entire directory hierarchy below each of the
                          given name operands.





 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003






 du(1)                                                                 du(1)




 EXAMPLES    [Toc]    [Back]
      Display disk usage for the current working directory and all
      directories below it, generating error messages for unreadable
      directories:

           du -r

      Display disk usage for the entire file system except for any cdfs or
      nfs mounted file systems:

           du -t hfs /

      Display disk usage for files on the root volume (/) only.  No usage
      statistics are collected for any other mounted file systems:

           du -x /

 WARNINGS    [Toc]    [Back]
      Block counts are incorrect for files that contain holes.

 SEE ALSO    [Toc]    [Back]
      df(1M), bdf(1M), quot(1M).

 STANDARDS CONFORMANCE    [Toc]    [Back]
      du: SVID2, SVID3, XPG2, XPG3, XPG4


 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
quota FreeBSD display disk usage and limits
quota HP-UX display disk usage and limits
quota IRIX display disk usage and limits
acctdusg Tru64 Perform disk-usage accounting
du FreeBSD display disk usage statistics
acctdisk Tru64 Perform disk-usage accounting
du OpenBSD display disk usage statistics
quota OpenBSD display disk usage and limits
du Tru64 Displays a summary of disk usage
quota Tru64 displays disk usage and limits
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service