Re: file size output mismatch

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

 



On 9/24/07, Adil Mujeeb <mujeeb.adil@xxxxxxxxx> wrote:
<snip>
> adil@test:~> ls -lh test
> -rw-r--r-- 1 adil group 2.0G 2007-09-24 23:51 test
> adil@test:~> du -h test
> 2.1G    test   <--------------------- why it is showing 2.1 GB
>
> I could not understand this difference. Could anybody explain this
> behavioour?
>

Your right, this is not a kernel issue.  It is simply a display issue.

In particular, I would guess it is a GB vs. GiB issue.
http://en.wikipedia.org/wiki/Gibibyte

ie. "ls" is reporting Gibibytes and "du" is reporting Gigabytes.

Over time more and more user-level apps moving to the nomenclature
described at Wikipedia.  (In this case neither is using Wikipedia
endorsed suffixes of GB / GiB).

Greg
-- 
Greg Freemyer
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux