Name

zip — stdin  stdout  - file  -- opt  --help  --version

Synopsis

zip [options] [files]

zip and unzip compress and uncompress files in Windows Zip format. Compressed files have the suffix .zip. Unlike most other Linux compression commands, zip does not delete the original 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, 2nd Edition 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.