zip
ArchivesBeginnerReference onlyCreate .zip archives
Name: zip: ZIP format
This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.
Description
zip creates .zip archives holding many files and directories (-r). ZIP opens natively on Windows and macOS, so it suits exchanging files with users of other systems.
Syntax
zip [OPTION]... ARCHIVE FILE...Common options
| -r | Recurse into directories |
| -x PATTERN | Leave out matching files, e.g. -x "*.git*" |
| -j | Store just the files, not their directories |
| -u | Add only new or changed files |
| -d | Delete files from the zip |
| -m | Delete the originals after zipping |
| -9 | Best compression |
| -e | Encrypt with a password |
| -q | Quiet |