linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* du and ls
@ 2007-06-02  1:58 Fabio Miranda Hamburger
  2007-06-02 11:06 ` Glynn Clements
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Miranda Hamburger @ 2007-06-02  1:58 UTC (permalink / raw)
  To: linux-c-programming

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed, Size: 405 bytes --]

Hello,

I am curious about the mismatch between du and ls. Apparently, du reports 
amount of 512 or 1024-K blocks, and ls lists the absolute value.

But, why in some cases, a 1100 bytes file is reported by du as 4 x 512 
bytes instead of 3 x 512bytes

I note both use fstat().

Thanks for advice,

---
Fabio Andrés Miranda
Ingeniería en sistemas informáticos
Universidad Latina - Costa Rica

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-06-04  7:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-02  1:58 du and ls Fabio Miranda Hamburger
2007-06-02 11:06 ` Glynn Clements
2007-06-02 23:09   ` Fabio Miranda Hamburger
2007-06-04  7:12     ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).