8

I want to give some scenarios:

  • A movie file shows 700 MB in Windows but it shows around 735 MB in Ubuntu, which is in my drive having NTFS partition. Similarly another file shows 446 MB in Windows but 467 MB in Ubuntu.

  • Also when I download files from internet they change once downloaded in Ubuntu but do not change in Windows.

  • I generally have to upload torrents mentioning the file sizes. Most of the time I use Ubuntu, I use Windows to play games only.

Actually my questions are:

  • Which size should I mention while creating torrents?
  • Is there any tool or software or formula to calculate the file size in Ubuntu equivalent to file size in Windows?

I have already tried following links but could not find my actual answers:

  • because Windows is wrong – endolith Oct 27 '16 at 3:16
9

Windows assumes that there are 1024 Bytes in a Kilobyte unit, and 1024 Kilobytes in a Megabyte unit. While Ubuntu assumes, a 1000 bytes constitute a Kilobyte (KB) unit, 1000 Kilobytes for a Megabyte (MB) and so on.

Windows is using the ‘binary prefix’, and Ubuntu or GNU/Linux, is using it in its ‘proper’ foam.

The IEC and NIST standardized, and changed the symbols into …

In usage, products and concepts typically described using powers of 1024 would continue to be, but with the new IEC prefixes.

For example, a memory module of 536870912 bytes (512×1048576) would be referred to as 512 MiB or 512 mebibytes instead of 512 MB or 512 megabytes. Conversely, since hard drives have historically been marketed using the SI convention that “giga” means 1000000000, a “500 GB” hard drive would still be labeled as such.

According to these recommendations, operating systems and other software would also use binary and SI prefixes in the same way, so the purchaser of a “500 GB” hard drive would find the operating system reporting either “500 GB” or “466 GiB“, while 536870912 bytes of RAM would be displayed as “512 MiB”.wikipedia

So to answer your first question, use the size that's based on the fact that a MB is 1024KB. As far as the second question, I'm not aware of such a tool.

  • 3
    On the command line, du -h filename shows the size in kiB/MiB/GiB (1024 increments) and du -h --si filename shows the size in kB/MB/GB (1000 increments). I have no idea how to do this in the GUI. – Gilles 'SO- stop being evil' Sep 4 '13 at 7:26
  • @Mitch: Thanks for a great conceptual answer. The link was simply awesome.. – Saurav Kumar Sep 4 '13 at 19:25
  • @Gilles: you simply solved my issue.. That command works great and at least help me to get the file size in standard format. Yes I was also not able to find any GUI but that is not my problem now. – Saurav Kumar Sep 4 '13 at 19:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.