viewing actual file size of folder

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-2
down vote

favorite












I know that the command du -csbh will show you the actual file size of a directory.



This will be displayed as: 241 MB which is fine.



If I look in windows 10 at the properties of the same folder. The actual file size for the same directory is 240 MB.



Why is there a 1 MB difference? Is there a way to have cygwin (which is what I am using) to display the directory file size the same 240 MB?







share|improve this question
























    up vote
    -2
    down vote

    favorite












    I know that the command du -csbh will show you the actual file size of a directory.



    This will be displayed as: 241 MB which is fine.



    If I look in windows 10 at the properties of the same folder. The actual file size for the same directory is 240 MB.



    Why is there a 1 MB difference? Is there a way to have cygwin (which is what I am using) to display the directory file size the same 240 MB?







    share|improve this question






















      up vote
      -2
      down vote

      favorite









      up vote
      -2
      down vote

      favorite











      I know that the command du -csbh will show you the actual file size of a directory.



      This will be displayed as: 241 MB which is fine.



      If I look in windows 10 at the properties of the same folder. The actual file size for the same directory is 240 MB.



      Why is there a 1 MB difference? Is there a way to have cygwin (which is what I am using) to display the directory file size the same 240 MB?







      share|improve this question












      I know that the command du -csbh will show you the actual file size of a directory.



      This will be displayed as: 241 MB which is fine.



      If I look in windows 10 at the properties of the same folder. The actual file size for the same directory is 240 MB.



      Why is there a 1 MB difference? Is there a way to have cygwin (which is what I am using) to display the directory file size the same 240 MB?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 16 at 23:58









      hitokiri

      1




      1




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Putting aside for a moment the fact that this site is for Unix/Linux questions, how do we know that Windows determines size the same way that du does? We can't look at the Windows code since it's proprietary so barring official documentation describing exactly how the calculation is done one shouldn't be surprised by differences. But how hard can it be to count the number of bytes used by some files? Take a look at the answers to this question for some insight into why it is not an exact science: Why are there so many different ways to measure disk usage? (Of course there are no references to Windows but there's still useful information there.)






          share|improve this answer






















          • MB vs MiB? Think thats the likely explanation? Ive not done the math tho!
            – Timothy Frew
            Mar 19 at 21:07










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430704%2fviewing-actual-file-size-of-folder%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          Putting aside for a moment the fact that this site is for Unix/Linux questions, how do we know that Windows determines size the same way that du does? We can't look at the Windows code since it's proprietary so barring official documentation describing exactly how the calculation is done one shouldn't be surprised by differences. But how hard can it be to count the number of bytes used by some files? Take a look at the answers to this question for some insight into why it is not an exact science: Why are there so many different ways to measure disk usage? (Of course there are no references to Windows but there's still useful information there.)






          share|improve this answer






















          • MB vs MiB? Think thats the likely explanation? Ive not done the math tho!
            – Timothy Frew
            Mar 19 at 21:07














          up vote
          0
          down vote













          Putting aside for a moment the fact that this site is for Unix/Linux questions, how do we know that Windows determines size the same way that du does? We can't look at the Windows code since it's proprietary so barring official documentation describing exactly how the calculation is done one shouldn't be surprised by differences. But how hard can it be to count the number of bytes used by some files? Take a look at the answers to this question for some insight into why it is not an exact science: Why are there so many different ways to measure disk usage? (Of course there are no references to Windows but there's still useful information there.)






          share|improve this answer






















          • MB vs MiB? Think thats the likely explanation? Ive not done the math tho!
            – Timothy Frew
            Mar 19 at 21:07












          up vote
          0
          down vote










          up vote
          0
          down vote









          Putting aside for a moment the fact that this site is for Unix/Linux questions, how do we know that Windows determines size the same way that du does? We can't look at the Windows code since it's proprietary so barring official documentation describing exactly how the calculation is done one shouldn't be surprised by differences. But how hard can it be to count the number of bytes used by some files? Take a look at the answers to this question for some insight into why it is not an exact science: Why are there so many different ways to measure disk usage? (Of course there are no references to Windows but there's still useful information there.)






          share|improve this answer














          Putting aside for a moment the fact that this site is for Unix/Linux questions, how do we know that Windows determines size the same way that du does? We can't look at the Windows code since it's proprietary so barring official documentation describing exactly how the calculation is done one shouldn't be surprised by differences. But how hard can it be to count the number of bytes used by some files? Take a look at the answers to this question for some insight into why it is not an exact science: Why are there so many different ways to measure disk usage? (Of course there are no references to Windows but there's still useful information there.)







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 18 at 8:21

























          answered Mar 17 at 0:31









          B Layer

          3,9001525




          3,9001525











          • MB vs MiB? Think thats the likely explanation? Ive not done the math tho!
            – Timothy Frew
            Mar 19 at 21:07
















          • MB vs MiB? Think thats the likely explanation? Ive not done the math tho!
            – Timothy Frew
            Mar 19 at 21:07















          MB vs MiB? Think thats the likely explanation? Ive not done the math tho!
          – Timothy Frew
          Mar 19 at 21:07




          MB vs MiB? Think thats the likely explanation? Ive not done the math tho!
          – Timothy Frew
          Mar 19 at 21:07












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430704%2fviewing-actual-file-size-of-folder%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)