To convert larger units to smaller units (i.e. If you wanted to convert to gigabytes, you would divide by 1,024 three times (once to get to KB, once to get to MB, and then once to end up in GB). To convert smaller units to larger units (convert bytes to kilobytes or megabytes) you simply divide the original number by 1,024 for each unit size along the way to the final desired unit.įor example, if you want to convert 110,214,321,212 bytes to megabytes, you would divide by 1,024 (to first convert to KB), and then divide by 1,024 again (to end up in MB). The only other thing you need to know is the name and order of the sizes (kilobyte, megabyte, gigabyte, terabyte). With this method the only number you need to memorize is 1024. There is a fast and easy way to do any of these conversions. The quick and easy method to convert between size units The larger the file size, the bigger the discrepancy will be between the size it appears to be at first glance and the actual size.Īnd yet it seems, we're fighting a losing battle Many people will look at a file size such as 54,183,672,092 bytes and say it is "54 Gigabytes" based on the first 2 digits of the number. The wrong way to convert between size units Throughout the rest of this post I will refer to a gigabyte as 1,073,741,824 bytes as this is the common use among people even if it is incorrect per the textbook definition. I don't know about you, but I have never actually heard another person say the word "Gibibyte". See this wikipedia entry for more information. The solution to all this was that the official definition of a "Gigabyte" is now 1,000,000,000 bytes, and a "Gibibyte" is 1,073,741,824. You can follow Brian on Twitter at and see his blog at Guest author Brian Smith is an AIX/Linux systems administrator in Colorado. This is about a 7% discrepancy, and as sizes increase the discrepancy gets larger (for example a terabyte has about a 9% discrepancy). If you ask a hard drive manufacturer, they would say a gigabyte is 1,000,000,000 bytes. Historically there has been a discrepancy and dispute on how much space a kilobyte, megabyte, and gigabyte represented. A kilobyte/megabyte/gigabyte versus a kibibyte/mebibyte/gibibyte This post will cover a very simple and easy way to quickly convert between any of these units. To make things even more complicated, the POSIX standard also specifies that the default output for commands like "df" and "du" must be in 512 byte block sizes. In that case, we can just divide that value by 1024 to get the size in Kilobytes(KB).A very common task in the IT industry is needing to convert between storage size units - bytes, kilobytes, megabytes, gigabytes, terabytes, etc. 1 Petabyte(PB) is equal to 1024 Terabytes.įor example, we have a file size in terms of bytes and it is more than 1024 bytes.1 Terabyte(TB)is equal to 1024 Gigabytes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |