1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 18:35:25 +02:00
tldr/pages/common/p7zip.md

26 lines
695 B
Markdown
Raw Normal View History

2020-01-30 23:01:31 +11:00
# p7zip
> Wrapper of 7-Zip file archiver with high compression ratio.
> Internally executes either 7za or 7zr command.
2024-10-12 10:02:00 +02:00
> More information: <https://p7zip.sourceforge.net>.
2020-01-30 23:01:31 +11:00
- 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}}`
2020-01-30 23:01:31 +11:00
- Decompress a file, replacing it with the original uncompressed version:
`p7zip {{[-d|--decompress]}} {{compressed.ext}}.7z`
2020-01-30 23:01:31 +11:00
- Decompress a file keeping the input file:
`p7zip {{[-d|--decompress]}} {{[-k|--keep]}} {{compressed.ext}}.7z`
2020-01-30 23:01:31 +11:00
- Skip some checks and force compression or decompression:
`p7zip {{[-f|--force]}} {{path/to/file}}`