How to tell a files Real Size in MAC OS X ?

Discussion in 'macOS' started by fab5freddy, Jun 7, 2009.

  1. fab5freddy macrumors 65816

    fab5freddy

    Joined:
    Jan 21, 2007
    Location:
    Heaven or Hell
    #1
    i started a transfer of a large file, but it did not finish,
    but the DMG file is showing me the 7 GB Full Size of the Finished file!

    But i know that the file stopped midway and only transferred
    half of it, around 3.5 GB...

    Is there any way to see in the Finder / Inspector the
    real size of this file which should only be 3.5 GB and not
    the 7 GB it is displaying in the Inspector ??

    thanks !
     
  2. gibbz macrumors 68030

    Joined:
    May 31, 2007
    #2
    You can use Terminal and type

    du -h insertfilename
     
  3. larkost macrumors 6502a

    Joined:
    Oct 13, 2007
    #3
    Did you by chance use something like BitTorrent to download it? If so, then they sometimes pre-allocate the whole file size, and then fill it in chunks. Those chunks do not have to be in order. So even if your client did not pre-allocate the file it could have downloaded the last chunk making the file the same size as the whole file.
     
  4. fab5freddy thread starter macrumors 65816

    fab5freddy

    Joined:
    Jan 21, 2007
    Location:
    Heaven or Hell
    #4
    Hi Gibbz,

    i tried that, but it can't find the file....
    do i have to include the path ?
     
  5. gibbz macrumors 68030

    Joined:
    May 31, 2007
    #5
    Yes in the terminal, you need to either go directly to the directory where the file is located or type in the full path after typing "du -h"
     
  6. fab5freddy thread starter macrumors 65816

    fab5freddy

    Joined:
    Jan 21, 2007
    Location:
    Heaven or Hell
    #6
    Gibbz,

    How do you know so much about the Terminal ?
    Are you a programmer ?
     
  7. throttlemeister macrumors 6502a

    Joined:
    Mar 31, 2009
    Location:
    Netherlands
    #7
    We have a winner! ;)

    This is what is happening, and "du -h" will also show you the full size as the space is already allocated.
     
  8. miles01110 macrumors Core

    miles01110

    Joined:
    Jul 24, 2006
    Location:
    The Ivory Tower (I'm not coming down)
    #8
    Simple commands like du -h aren't exactly high-level knowledge...
     

Share This Page