Recursively Zip a directory on Linux

Desired filename is the first argument and folder you wish to recursively zip is second argument.

zip -r create.zip /direcotry/to/zip/

To exclude some file extension

cd /path/to/dir
zip -r create.zip . -x "*.log" -x "*.cache"

 

Leave a Comment

Your email address will not be published. Required fields are marked *