I'm new to Mac OS X and am not sure how to do this:
I have three directories. I want to create a tar/zip file of them so that I can attach them to an email.
OSX ships with
tar. From the Terminal, you can do this:
tar czf archive_folder_name.tar.gz folder_to_copy
archive_folder_name.tar.gz with whatever you want to call the newly created archive and
folder_to_copy with whatever is the name of the folder you want to archive. (It's common to end the archive name with
.tgz, but that's not required.)
If you are looking for a GUI solution, simply use the compress command fron the contextual menu.
If you are interested in command-line solutions, several options are possible.
You may of course use the tar command.
tar -zcvf archive.tar.gz folder
But if you are sharing archives, some people may prefer a zip file, that you could create with the zip command
zip -r archive.zip folder