How To Get The Size Of A File Or Directory In Linux
Actual Disk Usage and True Size The size of a file and the space it occupies on your hard drive are rarely the same. Disk space is allocated in blocks. If a file is smaller than a block, an entire block is still allocated to it because the file system doesn’t have a smaller unit of real estate to use. Unless a file’s size is an exact multiple of blocks, the space it uses on the hard drive must always be rounded up to the next whole block....