Skip to content

zip

zip is an UNIX command line tool to package and compress files.

Usage

Create a zip file

zip -r {{ zip_file }} {{ files_to_save }}

Split files to a specific size

zip -s {{ size }} -r {{ destination_zip }} {{ files }}

Where {{ size }} can be 950m

Compress with password

zip -er {{ zip_file }} {{ files_to_save }}

Read files to compress from a file

cat {{ files_to_compress.txt }} | zip -er {{ destination_zip }} -@

Uncompress a zip file

unzip {{ zip_file }}