On Wed, Sep 18, 2002 at 02:03:57PM +0200, Rob van der Heij wrote: > At 15:46 17-09-02 -0400, Post, Mark K wrote: > > >$ du -csh /usr/sbin > > From the peanut gallery: the number reported by 'du' > is not always what you would save on the parent file > system when you move this to another block device. > With hard links the same file can be counted multiple > times.
du(1) from GNU fileutils, which is used by most every Linux distribution, gets this right and only counts hardlinked files once (unless you explicitly ask it to do otherwise). -- - mdz
