How to create a Linux compatible zip archive of a directory on a Mac

After much research and experimentation, I found this works every time:

1) Create a zipped tar file with this command on the Mac in Terminal:

tar -cvzf your_archive_name.tar.gz your_folder_name/

2) When you FTP the file from one server to another, make sure you do so with binary mode turned on

3) Unzip and untar in two steps in your shell on the Linux box (in this case, tcsh):

gunzip your_archive_name.tar.gz

tar -xvf your_archive_name.tar


On my Mac and in ssh bash I use the following simple commands:

Create Zip File (-czf)
tar -czf NAME.tgz FOLDER
Extract Zip File (-xzf)
tar -xzf NAME.tgz

Best, Mike