bug-coreutils
[Top][All Lists]
Advanced

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

"du -k" and "du -b" inconsistent output


From: Miguel Barão
Subject: "du -k" and "du -b" inconsistent output
Date: Thu, 19 Oct 2006 16:47:40 +0100
User-agent: KMail/1.9.1

This not a bug but rather an inconsistent output between these two du options, 
which is not documented in the manpages.

Suppose 'somefile' is a file containing a lot of zeros.

Then I get:
$ du -k somefile
12
$ du somefile
12
$ du -b somefile
4194432

It seems that du -b is returning the size of the file, and not the "disk 
usage" of that file.

(Using coreutils-5.94, linux on both reiserfs and ext3)

Miguel Barão




reply via email to

[Prev in Thread] Current Thread [Next in Thread]