du and ls

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

 



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

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux