Finder Equivalent Zip Archive
The ‘Finder’ which ships with Mac OS X 10.3 and later has a convenient create archive feature. It is also possible to create these archives by using the ‘ditto’ command.
- archive
- de-archive
ditto -c -k - -keepParent -rsrc $1 $2
ditto -x -k - -sequesterRsrc $1
This information originates form this article on Mac OS X hints.
Finally, if you are looking for how to use tar to zip and unzip files then visit this link.
Alterntivly, view the offical ditto man page.