Re: [Hampshire] Baffled by df/du

Kezdőlap

Reply to this message
Szerző: Mair
Dátum:  
Címzett: hampshire
Tárgy: Re: [Hampshire] Baffled by df/du

> > du's 40 used blocks != 69516 Used in df
> > I know there is a simple explanation, but what is it?
> You need to run du -s /home/* to ensure everything gets counted
> recursively under that directory, otherwise only top level files will
> be accounted for.


if you run du -s /home/*, you will want to add a -c and run du
-sc /home/* to get the grand total. However, I don't believe you about
this behaviour of du - why would using a * ensure it went any deeper
into subdirectories? My du certainly recurses into subdirectories.

Mair