Hello,
I understand that when you do a ls -l, the size portion lists the size in terms of blocks
However, I wanted to know what's the size of this block in terms of b or Kb etc.
So I read the manpage and I learnt of the -h option.
Comparing the 2 outputs, which are 105265 blocks and 103K, does that mean that 1block == (105265/103) == 1021K.
Just asking the question because 1021 doesn't sound like a "special" number.(As in not a power of 2)
Code:
$ ls -lh fileop.txt
-rw-rw-r-- 1 IAMTubby IAMTubby 103K Jun 18 00:17 fileop.txt
$ ls -l racdumpop.txt
-rw-rw-r-- 1 IAMTubby IAMTubby 105265 Jun 18 00:17 fileop.txt
Thanks.
EDIT : Now I'm totally confused, I did a wc -c fileop.txt and that gives me 105265(same as the block output). Since wc -c gives you the number of characters and each character is 8 bytes, does that mean 1 block == 8 bytes ?
EDIT : stupid of me, 1 character is 8 bits or 1 byte.
Bookmarks