[Top][All Lists]
[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
- "du -k" and "du -b" inconsistent output,
Miguel Barão <=
- Re: "du -k" and "du -b" inconsistent output, The Wanderer, 2006/10/20
- Re: "du -k" and "du -b" inconsistent output, Paul Eggert, 2006/10/20
- Re: "du -k" and "du -b" inconsistent output, Andreas Schwab, 2006/10/20
- Re: "du -k" and "du -b" inconsistent output, Eric Blake, 2006/10/20
- Re: "du -k" and "du -b" inconsistent output, Pádraig Brady, 2006/10/20