From bf9e98344df01e5a66cc9657bd975ef357773eb2 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 20 Feb 2008 15:45:47 -0800 Subject: 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. --- doc/coreutils.texi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 040a1de9c..df6792d7e 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 -- cgit v1.2.3-70-g09d2