• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Any advantages of Unix formatting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any advantages of Unix formatting


  • Subject: Re: Any advantages of Unix formatting
  • From: Kurt Revis <email@hidden>
  • Date: Tue, 4 Sep 2001 17:42:08 -0700

On a tangent, I've noticed that ls reports sizes in bytes,
but Finder reports sizes in multiples of 4k.

A file containing 'a' is reported as 1 byte in ls, but
4k by Finder. It doesn't have a resource fork, though.

I wonder which is more accurate.

It depends on what you mean by "file size". ls gives you the logical size of the file, and the Finder gives you the physical size. The allocation block size on your drive is (most likely) 4 KB, and your 1-byte file takes up 1 block.

So they're both equally accurate, just using different definitions.

--
Kurt Revis
email@hidden


References: 
 >Re: Any advantages of Unix formatting (From: Jonathan Hendry <email@hidden>)

  • Prev by Date: Re: Any advantages of Unix formatting
  • Next by Date: Re: Any advantages of Unix formatting
  • Previous by thread: Re: Any advantages of Unix formatting
  • Next by thread: Re: Any advantages of Unix formatting
  • Index(es):
    • Date
    • Thread