To zip particular files, you can use the following:
zip yourarchive.zip file1 file2 file3
To zip full directories recursively, you will add the -r flag.
zip -r nameofyourarchive.zip folder
That will zip everything everything that is in the folder that you choose, including any other folders that are inside of it.
Know of other ways to zip up files? Let us know in the comments!
Chris October 23rd, 2011
Posted In: How To