Compress files and directories using ZIP

the “-r” option means recursive and adds all files in the named directory

Zip only certain files, recursively

The command above saved all .doc files in the current directory as well as the subdirectories into AllMyDocs.zip.
The directory structure of files added is preserved.

zip Parameters

References

1. http://www.cyberciti.biz/faq/zipping-linux-directories/
2. man zip

About Gugulethu Ncube

IT enthusiast getting things done.