Page History
NAME
zip - package and compress files into a ZIP archive
SYNOPSIS
zip [OPTION...] ZIPFILE FILE...
DESCRIPTION
zip compresses and packs FILE(s) into a single ZIP archive that is compatible with PKZIP. By default, packing a directory to a ZIPFILE always implies that the subdirectories below should be included in the archive.
OPTIONS
-i 'PATTERN[, PATTERN...]'
Include only those files that match the specified PATTERN(s).
-x 'PATTERN[, PATTERN...]'
Exclude files that match the specified PATTERN(s).
EXAMPLE
To archive a directory, including its subdirectories, into a ZIPFILE:
No Format |
---|
zip data.zip data_dir |
...