Sometime we need to create zip of the folder which contains several subfolders, but all folders are not necessary to include in zip. For such cases we will run following command -
zip -r archiveName.zip folderName -x folderName/subfolder/**\*
Where folderName is the folder you wants to create zip and subfolder is the name of the folder you don't want to include in zip.
0 Comment(s)