File size
Amount of data in or storage spaced used for a computer file
File size is a measure of how much data a computer file contains or how much storage space it is allocated. Typically, file size is expressed in units based on byte. A large value is often expressed with a metric prefix (as in megabyte and gigabyte) or a binary prefix (as in mebibyte and gibibyte).
01Slack space
Due to typical file system design, the amount of space allocated for a file is usually larger than the size of the file's data , resulting in a relatively small amount of storage space for each file, called slack space or internal fragmentation, that is not available for other files but is not used for data in the file to which it belongs.
Generally, a file system allocates space in blocks that are significantly larger than one byte. The file system allocates a number of blocks that together provide enough space to hold the file data. Unless the file fits exactly into the aggregated blocks, then some storage space allocated to the file is unused by the file.
A file's allocated storage size is sometimes referred to as file size or alternatively with qualification such as size on disk.
Sources and credits
This article is adapted from the Wikipedia article “File size”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.