Mac OS Archive Utilities Bundling Extra Files
When compressing files on the Mac OS into an archive (e.g. zip, tgz etc.), it also includes some hidden files starting with "._". These files contains attributes which are re-applied to the files upon unarchival on another Mac OS system.However, on other OSes, they appear as real files, which can be really annoying.To exclude these files:COPYFILE_DISABLE=1 tar -czvf tarfile.tar.gz <target files>Reference: http://unix.stackexchange.com/questions/9665/create-tar-archive-of-a-directory-except-for-hidden-files
No comments:
Post a Comment