Name

zip [options] [] — zip

Synopsis

/usr/bin stdin stdout - file -- opt --help --version

zip and unzip compress and uncompress files in Windows Zip format. Compressed files have the suffix .zip. Unlike gzip, compress, and bzip2, zip does not delete the original file(s).files

zip myfile.zip file1 file2 file3

Pack.

zip -r myfile.zip dirname

Pack recursively.

unzip -l myfile.zip

List contents.

unzip myfile.zip

Unpack.

Get Linux Pocket Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.