• 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: Bookmark alias files v. Finder alias files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bookmark alias files v. Finder alias files


  • Subject: Re: Bookmark alias files v. Finder alias files
  • From: Ken Thomases <email@hidden>
  • Date: Sat, 14 Apr 2012 05:05:19 -0500

On Apr 14, 2012, at 4:40 AM, Shane Stanley wrote:

> On 14/04/2012, at 6:23 PM, Ken Thomases wrote:
>
>> The Finder-created one probably has a resource fork with additional data.  That accounts for the size difference that isn't visible using "ls".  Off-hand, I don't know what the resource fork data holds.
>
> How do I see the resource forks, if not with ls?

You can see the names and sizes of extended attributes, of which the resource fork is one, using "ls -@".  You can read the extended attribute using "xattr".

You can also access the resource fork as a file by appending "/..namedfork/rsrc" to the path.

"du -h" shows me the total file size.  That includes the resource fork and it also accounts for the block size.  That is, it's really showing the disk space used, the physical size, not just the logical size of the file.

Also, keep in mind that Apple switched some time ago to using powers of 10 for disk space units.  So, in the Finder, KB == 1,000 bytes, not 1,024 bytes.  Some of the command line tools still powers of 2, depending on options.

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Bookmark alias files v. Finder alias files
      • From: Michael Hall <email@hidden>
References: 
 >Bookmark alias files v. Finder alias files (From: Shane Stanley <email@hidden>)
 >Re: Bookmark alias files v. Finder alias files (From: Ken Thomases <email@hidden>)
 >Re: Bookmark alias files v. Finder alias files (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Bookmark alias files v. Finder alias files
  • Next by Date: Re: Bookmark alias files v. Finder alias files
  • Previous by thread: Re: Bookmark alias files v. Finder alias files
  • Next by thread: Re: Bookmark alias files v. Finder alias files
  • Index(es):
    • Date
    • Thread