snippetbashTip
p7zip — Wrapper of 7-Zip file archiver with high compression ratio. Internally executes either 7za or 7zr co
Viewed 0 times
commandclifilewithp7zipwrapperziparchiver
Problem
How to use the
p7zip command: Wrapper of 7-Zip file archiver with high compression ratio. Internally executes either 7za or 7zr command. More information: <https://manned.org/p7zip>.Solution
p7zip — Wrapper of 7-Zip file archiver with high compression ratio. Internally executes either 7za or 7zr command. More information: <https://manned.org/p7zip>.Archive a file, replacing it with a 7zipped compressed version:
p7zip {{path/to/file}}Archive a file keeping the input file:
p7zip {{[-k|--keep]}} {{path/to/file}}Decompress a file, replacing it with the original uncompressed version:
p7zip {{[-d|--decompress]}} {{compressed.ext}}.7zDecompress a file keeping the input file:
p7zip {{[-d|--decompress]}} {{[-k|--keep]}} {{compressed.ext}}.7zSkip some checks and force compression or decompression:
p7zip {{[-f|--force]}} {{path/to/file}}Code Snippets
Archive a file, replacing it with a 7zipped compressed version
p7zip {{path/to/file}}Archive a file keeping the input file
p7zip {{[-k|--keep]}} {{path/to/file}}Decompress a file, replacing it with the original uncompressed version
p7zip {{[-d|--decompress]}} {{compressed.ext}}.7zDecompress a file keeping the input file
p7zip {{[-d|--decompress]}} {{[-k|--keep]}} {{compressed.ext}}.7zSkip some checks and force compression or decompression
p7zip {{[-f|--force]}} {{path/to/file}}Context
tldr-pages: common/p7zip
Revisions (0)
No revisions yet.