Add one or more folders to .zip archive

To add single directory (with all files and sub-directories) simply execute:

zip -r name_of_your_directory

To add all contents of current directory (again, recursively) call instead:

zip -r *

While to add two or more directories (but not all) in current directory — list them:

zip -r directory_a directory_b directory_c

Call just zip to see all switches, options etc.

Leave a Reply