[BACK]Return to du.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / du

Annotation of src/usr.bin/du/du.1, Revision 1.3

1.3     ! deraadt     1: .\"    $OpenBSD: du.1,v 1.4.2.1 1995/12/05 02:45:41 jtc Exp $
1.2       deraadt     2: .\"    $NetBSD: du.1,v 1.4.2.1 1995/12/05 02:45:41 jtc Exp $
1.1       deraadt     3: .\"
                      4: .\" Copyright (c) 1990, 1993
                      5: .\"    The Regents of the University of California.  All rights reserved.
                      6: .\"
                      7: .\" Redistribution and use in source and binary forms, with or without
                      8: .\" modification, are permitted provided that the following conditions
                      9: .\" are met:
                     10: .\" 1. Redistributions of source code must retain the above copyright
                     11: .\"    notice, this list of conditions and the following disclaimer.
                     12: .\" 2. Redistributions in binary form must reproduce the above copyright
                     13: .\"    notice, this list of conditions and the following disclaimer in the
                     14: .\"    documentation and/or other materials provided with the distribution.
                     15: .\" 3. All advertising materials mentioning features or use of this software
                     16: .\"    must display the following acknowledgement:
                     17: .\"    This product includes software developed by the University of
                     18: .\"    California, Berkeley and its contributors.
                     19: .\" 4. Neither the name of the University nor the names of its contributors
                     20: .\"    may be used to endorse or promote products derived from this software
                     21: .\"    without specific prior written permission.
                     22: .\"
                     23: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     24: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     25: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     26: .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     27: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     28: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     29: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     30: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     31: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     32: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     33: .\" SUCH DAMAGE.
                     34: .\"
                     35: .\"    @(#)du.1        8.2 (Berkeley) 4/1/94
                     36: .\"
                     37: .Dd April 1, 1994
                     38: .Dt DU 1
                     39: .Os
                     40: .Sh NAME
                     41: .Nm du
                     42: .Nd display disk usage statistics
                     43: .Sh SYNOPSIS
                     44: .Nm du
                     45: .Op Fl H | Fl L | Fl P
                     46: .Op Fl a | Fl s
                     47: .Op Fl kx
                     48: .Op Ar file ...
                     49: .Sh DESCRIPTION
                     50: The
                     51: .Nm du
                     52: utility displays the file system block usage for each file argument
                     53: and for each directory in the file hierarchy rooted in each directory
                     54: argument.
                     55: If no file is specified, the block usage of the hierarchy rooted in
                     56: the current directory is displayed.
                     57: .Pp
                     58: The options are as follows:
                     59: .Bl -tag -width Ds
                     60: .It Fl H
                     61: Symbolic links on the command line are followed.
                     62: (Symbolic links encountered in the tree traversal are not followed.)
                     63: .It Fl L
                     64: All symbolic links are followed.
                     65: .It Fl P
                     66: No symbolic links are followed.
                     67: .It Fl a
                     68: Display an entry for each file in the file hierarchy.
                     69: .It Fl k
                     70: By default,
                     71: .Nm du
                     72: displays the number of blocks as returned by the
                     73: .Xr stat  2
                     74: system call, i.e. 512-byte blocks.
                     75: If the
                     76: .Fl k
                     77: flag is specified, the number displayed is the number of 1024-byte
                     78: blocks.
                     79: Partial numbers of blocks are rounded up.
                     80: .It Fl s
                     81: Display only the grand total for the specified files.
                     82: .It Fl x
                     83: Filesystem mount points are not traversed.
                     84: .El
                     85: .Pp
                     86: .Nm Du
                     87: counts the storage used by symbolic links and not the files they
                     88: reference unless the
                     89: .Fl H
                     90: or
                     91: .Fl L
                     92: option is specified.
                     93: If either the
                     94: .Fl H
                     95: or
                     96: .Fl L
                     97: options are specified, storage used by any symbolic links which are
                     98: followed is not counted or displayed.
                     99: The
                    100: .Fl H ,
                    101: .Fl L
                    102: and
                    103: .Fl P
                    104: options override each other and the command's actions are determined
                    105: by the last one specified.
                    106: .Pp
                    107: Files having multiple hard links are counted (and displayed) a single
                    108: time per
                    109: .Nm du
                    110: execution.
1.2       deraadt   111: .Sh ENVIRONMENT VARIABLES
1.1       deraadt   112: .Bl -tag -width BLOCKSIZE
                    113: .It Ev BLOCKSIZE
1.2       deraadt   114: If the environment variable
1.1       deraadt   115: .Ev BLOCKSIZE
                    116: is set, and the
                    117: .Fl k
                    118: option is not specified, the block counts will be displayed in units of that
                    119: size block.
                    120: .El
                    121: .Sh SEE ALSO
                    122: .Xr df 1 ,
                    123: .Xr fts 3 ,
                    124: .Xr symlink 7 ,
                    125: .Xr quot 8
                    126: .Sh HISTORY
                    127: A
                    128: .Nm du
                    129: command appeared in
                    130: .At v6 .