[ubuntu-uk] df and du give different results

Alan Pope alan at popey.com
Thu Jan 3 18:33:38 GMT 2008

On Thu, 2008-01-03 at 12:49 +0000, Chris Rowson wrote:
> Now that just doesn't add up.
> Please help me :-O

du counts disk space used at a block level and not accurately counted
bytes. There is a -b parameter which gives the more realistic apparent
size of files.

Also du doesn't by default count hidden files. 

You're also counting /proc and /dev which aren't really directories with
files in on disk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20080103/9216ab6e/attachment.pgp 

More information about the ubuntu-uk mailing list