Skip to content

Instantly share code, notes, and snippets.

@githubutilities
Last active August 29, 2015 14:19
Show Gist options
  • Select an option

  • Save githubutilities/2799d86cf75489871c15 to your computer and use it in GitHub Desktop.

Select an option

Save githubutilities/2799d86cf75489871c15 to your computer and use it in GitHub Desktop.
Mac OSX Hacks

Mac OSX Hacks

Mac OSX File System

Archiving and Compressing File

For archiving, use system provided tar located in /usr/bin/tar which understands resource forks and HFS meta-data.

Using ditto, pay attention to following options:

  1. --rsrc stores the resource forks and HFS meta-data with files side by side, while --sequesterRsrc stores them in __MACOSX directory. If you want to share with non-mac user, use the --norsrc option.
  2. --keepParent keeps the parent folder as root directory.

image file may contain a resource fork which makes larger. (run ls -l filename/..namedfork/rsrc to find out and use Rez under usr/bin/Rez to mess around with it)

Reference

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment