mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 09:42:07 +02:00

* 7z, 7za, 7zr: updates * Apply suggestions from code review Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com> * Update pages/common/7zr.md Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com> * Update pages/common/7z.md Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com> * 7za, 7zr: split back up * 7z, 7za: fix types * Update pages/common/7z.md Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com> Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com> Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
36 lines
841 B
Markdown
36 lines
841 B
Markdown
# 7z
|
|
|
|
> File archiver with a high compression ratio.
|
|
> More information: <https://www.7-zip.org>.
|
|
|
|
- [a]rchive a file or directory:
|
|
|
|
`7z a {{path/to/archive.7z}} {{path/to/file_or_directory}}`
|
|
|
|
- Encrypt an existing archive (including filenames):
|
|
|
|
`7z a {{path/to/encrypted.7z}} -p{{password}} -mhe=on {{path/to/archive.7z}}`
|
|
|
|
- E[x]tract an archive preserving the original directory structure:
|
|
|
|
`7z x {{path/to/archive.7z}}`
|
|
|
|
- E[x]tract an archive to a specific directory:
|
|
|
|
`7z x {{path/to/archive.7z}} -o{{path/to/output}}`
|
|
|
|
- E[x]tract an archive to stdout:
|
|
|
|
`7z x {{path/to/archive.7z}} -so`
|
|
|
|
- [a]rchive using a specific archive type:
|
|
|
|
`7z a -t{{7z|zip|gzip|bzip2|lzip}} {{path/to/archive.7z}} {{path/to/file_or_directory}}`
|
|
|
|
- [l]ist the contents of an archive:
|
|
|
|
`7z l {{path/to/archive.7z}}`
|
|
|
|
- List available archive types:
|
|
|
|
`7z i`
|