Tagarchief: tools

multiple folders in one zip file under linux

I keep forgetting the syntax for adding multiple folders under one zip file under linux.A small reminder to myself, and maybe it can help others as well (although it’s easy to find on the net).

The command to do that is quite straightforward/easy though :

zip -9 -r <zip file> <folder name>

the ‘-9’ tells zip to use the best compression, while the -r indicates you want to have zip do a recursive operation on all subfolders below the folder you mention.