From: Paul Eggert Date: Wed, 20 Feb 2008 23:45:47 +0000 (-0800) Subject: du vs. hard links and argument order: improve documentation X-Git-Tag: v6.11~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf9e98344df01e5a66cc9657bd975ef357773eb2;p=thirdparty%2Fcoreutils.git du vs. hard links and argument order: improve documentation * doc/coreutils.texi (du invocation): Document default behavior on hard links, and why argument order matters. --- diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 040a1de9c7..df6792d7ec 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -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