I've noticed that when I use the OS X tar command that it adds a bunch of files that start with ._ to the archive. These files store extended file information and are useful on OS X, but on a system that does not understand them, they just add clutter.
Luckily there is a way to stop OS X from adding these files.
This is the kind of thing that I was seeing when testing an archive:
To stop tar from including these hidden files, set the COPYFILE_DISABLE variable to 1 before running tar, like this:
export COPYFILE_DISABLE=1; tar -cvzf update.tgz fp-interface/themes/ik/entry-default.tpl
To go a step further, just add an alias to your ~/.profile:
A quick disclaimer...
Although I put in a great effort into researching all the topics I cover, mistakes can happen.
Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.
All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle).
Use of any information contained in this blog post/article is subject to this disclaimer