BrowseAtWork.com:   [ UP ]   [Manage cookies]

File size

From Wikipedia, the free encyclopedia

Jump to: navigation, search

File size measures the size of a computer file. Typically it is measured in bytes with a prefix. The actual amount of disk space consumed by the file depends on the file system.

The maximum file size a file system supports depends on the number of bits reserved to store size information and the total size of the file system. For example, with FAT32, the size of one file cannot be equal or larger than 4 GiB.

Some common file size units are:

  • 1 KiB = 1,024 bytes
  • 1 GiB = 1,073,741,824 bytes [2]
  • 1 TiB = 1,099,511,627,776 bytes [3].

These units are often described using the terms KB, MB, GB and TB respectively. This is technically imprecise, because the prefixes kilo, mega, giga and tera refer respectively to multiplication by 10^3, 10^6, 10^9 and 10^12. However, the power-of-two based prefixes have yet to find widespread usage, so some ambiguity remains. For example, a hard disk which is described by its maker as having a capacity of 200 GB will have a capacity very close to 200 * 10^9 bytes. Yet, when such a disk is freshly formatted and installed in a machine running Microsoft Windows, the operating system will report the size as approximately 186 GB (this value can vary slightly depending on the exact capacity of the drive and the file system used). This is because Windows is actually reporting the size in GiB and 186 GiB is approximately equal to 200 GB.

[edit] Conversion Table

Name Symbol Binary Measurement Decimal Measurement Number of Bytes Equal to
KiloByte KB 2^10 10^3 1,024 1,024 Bytes
MegaByte MB 2^20 10^6 1,048,576 1,024KB
GigaByte GB 2^30 10^9 1,073,741,824 1,024MB
TeraByte TB 2^40 10^12 1,099,511,627,776 1,024GB
PetaByte PB 2^50 10^15 1,125,899,906,842,624 1,024TB
ExaByte EB 2^60 10^18 1,152,921,504,606,846,976 1,024PB
ZettaByte ZB 2^70 10^21 1,180,591,620,717,411,303,424 1,024EB
YottaByte YB 2^80 10^24 1,208,925,819,614,629,174,706,176 1,024ZB

[edit] References

  1. ^ 2^20 = 1 048 576
  2. ^ 2^30 = 1 073 741 824
  3. ^ 2^40 = 1 099 511 627 776