AI Generated Cheatsheets

Zip Cheatsheet

The zip command is used to compress files and directories into a compressed archive file in a ZIP format.

Basic Syntax

zip [options] archive.zip file1 file2 directory1

Examples

Options

Option Description
-r Compress directories recursively.
-m Move the original files to the ZIP archive.
-u Update the ZIP archive with only new or modified files.
-d Extract files to a specific directory.
-l List the contents of the ZIP archive.
-v Display verbose output.

Resources