Thursday, April 19, 2018

Working with ZIP in terminal

Couple of days ago wanted to use ZIP in OSX terminal and realised that I don't have examples really (yes U can check manuals etc.) so I've decided just to note most common / usable ones:

zip --encrypt file.zip files - will create an encrypted zip archive (files won't be removed automatically after compressing);

zip -r archive.zip directoryName - will compress whole directory at once. U can add --encrypt flag here as well

unzip file.zip - extracts file from archive into current directory

That's it for now although most likely will have to add more later on.