commands
zip — create ZIP archives
Info-ZIP creates or updates archives. -q suppresses normal messages. Use a new archive name to avoid retaining unexpected members from a prior archive. Example assumes a fresh archive lab fixture with new output names.
Formal Syntax & Structure
linux syntaxlinux
zip [-q] ARCHIVE FILE...Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| -q | option | quiet |
| ARCHIVE | operand | archive name |
| FILE | operand | One or more input paths for this file-based creation form. |
Return Value
exit status and output
Info-ZIP creates or updates archives. -q suppresses normal messages. Use a new archive name to avoid retaining unexpected members from a prior archive.
Working Example
Example Snippetlinux
zip -q bundle.zip notes.txt report.txtunzip -Z -1 bundle.zip