mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-31 12:17:58 +01:00
Merge pull request #788 from oxguy3/patch-1
Added missing p7zip tools (7z and 7zr)
This commit is contained in:
commit
6abfb1f252
3 changed files with 52 additions and 8 deletions
23
pages/common/7z.md
Normal file
23
pages/common/7z.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# 7z
|
||||
|
||||
> A file archiver with high compression ratio.
|
||||
|
||||
- Archive a file or folder:
|
||||
|
||||
`7z a {{compressed.7z}} {{path/to/file}}`
|
||||
|
||||
- Extract an existing 7z file with original directory structure:
|
||||
|
||||
`7z x {{compressed}}`
|
||||
|
||||
- Archive using a specific archive type:
|
||||
|
||||
`7z a -t{{zip|gzip|bzip2|tar|...}} {{compressed}} {{path/to/file}}`
|
||||
|
||||
- List available archive types:
|
||||
|
||||
`7z i`
|
||||
|
||||
- List the contents of an archive file:
|
||||
|
||||
`7z l {{compressed}}`
|
|
@ -1,19 +1,24 @@
|
|||
# 7za
|
||||
|
||||
> A file archiver with high compression ratio.
|
||||
> A standalone version of `7z` with support for fewer archive types.
|
||||
|
||||
- Compress directory or file:
|
||||
- Archive a file or folder:
|
||||
|
||||
`7za a {{compressed.7z}} {{directory_or_file_to_compress}}`
|
||||
`7za a {{compressed.7z}} {{path/to/file}}`
|
||||
|
||||
- Decompress an existing 7z file with original directory structure:
|
||||
- Extract an existing 7z file with original directory structure:
|
||||
|
||||
`7za x {{compressed.7z}}`
|
||||
`7za x {{compressed}}`
|
||||
|
||||
- Compress to zip format:
|
||||
- Archive using a specific archive type:
|
||||
|
||||
`7za a -tzip {{compressed.zip}} {{directory_or_file_to_compress}}`
|
||||
`7za a -t{{zip|gzip|bzip2|tar|...}} {{compressed}} {{path/to/file}}`
|
||||
|
||||
- Create multipart 7zip file; `part_size` specifies part size in Bytes, Kilobytes, Megabytes or Gigabytes:
|
||||
- List available archive types:
|
||||
|
||||
`7za -v{{part_size}}{{[b|k|m|g]}} {{compressed.7z}} {{directory_or_file_to_compress}}`
|
||||
`7za i`
|
||||
|
||||
- List the contents of an archive file:
|
||||
|
||||
`7za l {{compressed}}`
|
||||
|
|
16
pages/common/7zr.md
Normal file
16
pages/common/7zr.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# 7zr
|
||||
|
||||
> A file archiver with high compression ratio.
|
||||
> A standalone version of `7z` that only supports .7z files.
|
||||
|
||||
- Archive a file or folder:
|
||||
|
||||
`7zr a {{compressed.7z}} {{path/to/file}}`
|
||||
|
||||
- Extract an existing 7z file with original directory structure:
|
||||
|
||||
`7zr x {{compressed.7z}}`
|
||||
|
||||
- List the contents of an archive file:
|
||||
|
||||
`7zr l {{compressed.7z}}`
|
Loading…
Reference in a new issue