
* pages*: fix Python, Java, pacman, apt, *zip*, xz, tar, git, RPM and grep names * pages*: fix brand and technical names Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * fluxctl, gitmoji, in-toto-run, osv-scanner: replace `git` with Git * bzegrep: enclose egrep with backticks Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * git-bug: use Git instead of `git` Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * git-bug: use Git instead of `git` Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * git-force-clone: use Git instead of `git` Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * gitwatch: use Git instead of `git` Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * hub-init: use Git instead of `git` Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * pages.*: use Linux instead of GNU/Linux --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
1.3 KiB
zip
Package and compress (archive) files into
zip
archive. See also:unzip
. More information: https://manned.org/zip.
- Add files/directories to a specific archive:
zip -r {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}
- Remove files/directories from a specific archive:
zip --delete {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}
- Archive files/directories e[x]cluding specified ones:
zip {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} --exclude {{path/to/excluded_files_or_directories}}
- Archive files/directories with a specific compression level (
0
- the lowest,9
- the highest):
zip -r -{{0-9}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}
- Create an encrypted archive with a specific password:
zip -r --encrypt {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}
- Archive files/directories to a multi-part [s]plit
zip
archive (e.g. 3 GB parts):
zip -r -s {{3g}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}
- Print a specific archive contents:
zip -sf {{path/to/compressed.zip}}