mirror of https://github.com/CrimsonTome/tldr.git
7z, 7za, 7zr: updates (#5432)
* 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>fix-hunspell-typos-042721
parent
6e6711f2e3
commit
d6f6b88a7f
|
@ -1,36 +1,36 @@
|
||||||
# 7z
|
# 7z
|
||||||
|
|
||||||
> A file archiver with high compression ratio.
|
> File archiver with a high compression ratio.
|
||||||
> More information: <https://www.7-zip.org/>.
|
> More information: <https://www.7-zip.org>.
|
||||||
|
|
||||||
- Archive a file or directory:
|
- [a]rchive a file or directory:
|
||||||
|
|
||||||
`7z a {{archived.7z}} {{path/to/file_or_directory}}`
|
`7z a {{path/to/archive.7z}} {{path/to/file_or_directory}}`
|
||||||
|
|
||||||
- Encrypt an existing archive (including headers):
|
- Encrypt an existing archive (including filenames):
|
||||||
|
|
||||||
`7z a {{encrypted.7z}} -p{{password}} -mhe=on {{archived.7z}}`
|
`7z a {{path/to/encrypted.7z}} -p{{password}} -mhe=on {{path/to/archive.7z}}`
|
||||||
|
|
||||||
- Extract an existing 7z file with original directory structure:
|
- E[x]tract an archive preserving the original directory structure:
|
||||||
|
|
||||||
`7z x {{archived.7z}}`
|
`7z x {{path/to/archive.7z}}`
|
||||||
|
|
||||||
- Extract an archive with user-defined output path:
|
- E[x]tract an archive to a specific directory:
|
||||||
|
|
||||||
`7z x {{archived.7z}} -o{{path/to/output}}`
|
`7z x {{path/to/archive.7z}} -o{{path/to/output}}`
|
||||||
|
|
||||||
- Extract an archive to stdout:
|
- E[x]tract an archive to stdout:
|
||||||
|
|
||||||
`7z x {{archived.7z}} -so`
|
`7z x {{path/to/archive.7z}} -so`
|
||||||
|
|
||||||
- Archive using a specific archive type:
|
- [a]rchive using a specific archive type:
|
||||||
|
|
||||||
`7z a -t{{zip|gzip|bzip2|tar}} {{archived.7z}} {{path/to/file_or_directory}}`
|
`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:
|
- List available archive types:
|
||||||
|
|
||||||
`7z i`
|
`7z i`
|
||||||
|
|
||||||
- List the contents of an archive file:
|
|
||||||
|
|
||||||
`7z l {{archived.7z}}`
|
|
||||||
|
|
|
@ -1,25 +1,37 @@
|
||||||
# 7za
|
# 7za
|
||||||
|
|
||||||
> A file archiver with high compression ratio.
|
> File archiver with a high compression ratio.
|
||||||
> A standalone version of `7z` with support for fewer archive types.
|
> Similar to `7z` except that it supports fewer file types but is cross-platform.
|
||||||
> More information: <https://www.7-zip.org/>.
|
> More information: <https://www.7-zip.org>.
|
||||||
|
|
||||||
- Archive a file or directory:
|
- [a]rchive a file or directory:
|
||||||
|
|
||||||
`7za a {{archived.7z}} {{path/to/file_or_directory}}`
|
`7za a {{path/to/archive.7z}} {{path/to/file_or_directory}}`
|
||||||
|
|
||||||
- Extract an existing 7z file with original directory structure:
|
- Encrypt an existing archive (including file names):
|
||||||
|
|
||||||
`7za x {{archived}}`
|
`7za a {{path/to/encrypted.7z}} -p{{password}} -mhe=on {{path/to/archive.7z}}`
|
||||||
|
|
||||||
- Archive using a specific archive type:
|
- E[x]tract an archive preserving the original directory structure:
|
||||||
|
|
||||||
`7za a -t{{zip|gzip|bzip2|tar}} {{archived}} {{path/to/file_or_directory}}`
|
`7za x {{path/to/archive.7z}}`
|
||||||
|
|
||||||
|
- E[x]tract an archive to a specific directory:
|
||||||
|
|
||||||
|
`7za x {{path/to/archive.7z}} -o{{path/to/output}}`
|
||||||
|
|
||||||
|
- E[x]tract an archive to stdout:
|
||||||
|
|
||||||
|
`7za 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:
|
||||||
|
|
||||||
|
`7za l {{path/to/archive.7z}}`
|
||||||
|
|
||||||
- List available archive types:
|
- List available archive types:
|
||||||
|
|
||||||
`7za i`
|
`7za i`
|
||||||
|
|
||||||
- List the contents of an archive file:
|
|
||||||
|
|
||||||
`7za l {{archived}}`
|
|
||||||
|
|
|
@ -1,17 +1,33 @@
|
||||||
# 7zr
|
# 7zr
|
||||||
|
|
||||||
> A file archiver with high compression ratio.
|
> File archiver with a high compression ratio.
|
||||||
> A standalone version of `7z` that only supports .7z files.
|
> Similar to `7z` except that it only supports `.7z` files.
|
||||||
> More information: <https://www.7-zip.org/>.
|
> More information: <https://www.7-zip.org>.
|
||||||
|
|
||||||
- Archive a file or directory:
|
- [a]rchive a file or directory:
|
||||||
|
|
||||||
`7zr a {{archived.7z}} {{path/to/file_or_directory}}`
|
`7zr a {{path/to/archive.7z}} {{path/to/file_or_directory}}`
|
||||||
|
|
||||||
- Extract an existing 7z file with original directory structure:
|
- Encrypt an existing archive (including file names):
|
||||||
|
|
||||||
`7zr x {{archived.7z}}`
|
`7zr a {{path/to/encrypted.7z}} -p{{password}} -mhe=on {{path/to/archive.7z}}`
|
||||||
|
|
||||||
- List the contents of an archive file:
|
- E[x]tract an archive preserving the original directory structure:
|
||||||
|
|
||||||
`7zr l {{archived.7z}}`
|
`7zr x {{path/to/archive.7z}}`
|
||||||
|
|
||||||
|
- E[x]tract an archive to a specific directory:
|
||||||
|
|
||||||
|
`7zr x {{path/to/archive.7z}} -o{{path/to/output}}`
|
||||||
|
|
||||||
|
- E[x]tract an archive to stdout:
|
||||||
|
|
||||||
|
`7zr x {{path/to/archive.7z}} -so`
|
||||||
|
|
||||||
|
- [l]ist the contents of an archive:
|
||||||
|
|
||||||
|
`7zr l {{path/to/archive.7z}}`
|
||||||
|
|
||||||
|
- List available archive types:
|
||||||
|
|
||||||
|
`7zr i`
|
||||||
|
|
Loading…
Reference in New Issue