Can you tell me the unit of file size that comes out when I do Linux ls -s?
linux linux-kernel algorithm
ls -s tells you how many blocks are in use.
The disk is not recorded in bytes, but in blocks. If you write a 1KB block, the disk will have four blocks, or 4KB, even if it is 3.3KB.
Jung Doo-sik explained it well. In addition, ls -sk
shows the allocated size in kilobyte units.
Additionally, if ls -lh is used, KB and MB are attached to show.
© 2024 OneMinuteCode. All rights reserved.