On Fri, Jan 13, 2012 at 06:24:39PM +0100, Nicolas Bercher wrote: > tlaro...@polynum.com a écrit : > >I never thought that perhaps, under Unices, du(1) with hard links will > >produce the same misleading result... > > And fortunately, Unices 'du' handles this correctly! > (-l option toggles the counting of hardlinked files several times or > not)
But one could argue that in this case the only possibility would be du(1) with some flag producing the grand "true" total without a detailed listing. Because, if it is not the case, whether another instance of an already seen hardlink is not printed in the listing (but this is arbitrary); whether the sum is incorrect (in the meaning not the sum of the sizes displayed) ;) The devil is in the details. -- Thierry Laronde <tlaronde +AT+ polynum +dot+ com> http://www.kergis.com/ Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C