Stat output problem
hi guys
i got confused about stat output stat manual says File : Size in Bytes Blocks : Number of blocks used IO Block : Size in bytes of every block. when i use stat command for passwd file it says Code:
~#stat /etc/passwd 8 blocks === 8 * 4096 = 32768 file size should be 32769 bytes to use 8 blocks !! |
IO Block sizes are usually 4096, it has to do with the way hardware works. Heres a good article that should explain everything to you:
http://www.linuxintro.org/wiki/Block...nd_block_sizes If you have more questions after that juts let us know. |
Quote:
but i'm of the opinion for store a file with 999 bytes you need just one block . why it his example the file with 999 bytes needs 8 blocks ????? |
no one ?????
|
8 bit rule, everything is in eights.
|
Quote:
|
All times are GMT -5. The time now is 12:08 AM. |