2025-03-14 21:59:59 -06:00
|
|
|
# p7zip
|
|
|
|
|
|
|
|
|
|
> Wrapper of 7-Zip file archiver with high compression ratio.
|
|
|
|
|
> Internally executes either 7za or 7zr command.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://manned.org/p7zip>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Archive a file, replacing it with a 7zipped compressed version:
|
|
|
|
|
|
|
|
|
|
`p7zip {{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Archive a file keeping the input file:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`p7zip {{[-k|--keep]}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Decompress a file, replacing it with the original uncompressed version:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`p7zip {{[-d|--decompress]}} {{compressed.ext}}.7z`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Decompress a file keeping the input file:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`p7zip {{[-d|--decompress]}} {{[-k|--keep]}} {{compressed.ext}}.7z`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Skip some checks and force compression or decompression:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`p7zip {{[-f|--force]}} {{path/to/file}}`
|