Re: file size output mismatch

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

 




> 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).
 
Thanks for quick reply.
Where could i get the list of commands about the output display unit (GB / GiB)?
 
Rgds,
Adil

 


[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