I was using the unix utility du -h
to check the file sizes of a text and a utf file. The man page says the -h --human-readable
flag "print sizes in human readable format (e.g., 1K 234M 2G)". After reading the man page, I decided to try du -b
. The man page says the -b --bytes
flag is "equivalent to '--apparent-size --block-size=1'". What I understand is that du -b
lists how many bytes are in the file.
The output of du -b
is 122
, but when running du -h
on the same file I get 4.0K
.
What does the K
stand for? When looking at the man page it looks like it is supposed represent Kilobytes, but 122 bytes can't be 4 Kilobytes. What am I missing here?