[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 97% use of / system



On Fri May 23 2008 07:19:10 Ron Johnson wrote:
> Lastly, remember that df sees blocks, but du sees *files*.  So,
> where du sees 3 files that are each 1KiB, fir a total of 3KiB, df
> sees them as each using 1 4KiB block, for a total of 12KiB.

I'm pretty sure that du figures out the number of blocks used from
the file size (although maybe not the indirect blocks):

  $ mkdir foo
  $ du foo
  4	foo
  $ echo small >foo/bar
  $ du foo
  8	foo
  $ 

--Mike Bird


Reply to: