]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
du vs. hard links and argument order: improve documentation
authorPaul Eggert <eggert@CS.UCLA.EDU>
Wed, 20 Feb 2008 23:45:47 +0000 (15:45 -0800)
committerJim Meyering <meyering@redhat.com>
Thu, 21 Feb 2008 08:40:07 +0000 (09:40 +0100)
* doc/coreutils.texi (du invocation): Document default behavior on
hard links, and why argument order matters.

doc/coreutils.texi

index 040a1de9c7d4c2bb19bf87c0aebe32b293f3d097..df6792d7ecfad6d1cfcc5b21d95dece82905167b 100644 (file)
@@ -9686,6 +9686,11 @@ directory.  Normally the disk space is printed in units of
 1024 bytes, but this can be overridden (@pxref{Block size}).
 Non-integer quantities are rounded up to the next higher unit.
 
+If two or more hard links point to the same file, only one of the hard
+links is counted.  The @var{file} argument order affects which links
+are counted, and changing the argument order may change the numbers
+that @command{du} outputs.
+
 The program accepts the following options.  Also see @ref{Common options}.
 
 @table @samp