All Posts programming p7zip: archiver to compress or decompress files

p7zip: archiver to compress or decompress files

ยท 140 words ยท 1 minute read

What is p7zip? ๐Ÿ”—

p7zip is a wrapper of 7-Zip file archiver with high compression ratio. Internally executes either 7za or 7zr command.

More information: https://p7zip.sourceforge.net .

Usage ๐Ÿ”—

Archive a file, replacing it with a 7zipped compressed version:

p7zip path/to/file

Archive a file keeping the input file:

p7zip [-k|--heep] path/to/file

Decompress a file, replacing it with the original uncompressed version:

p7zip [-d|--decompress] compressed.ext.7z

Decompress a file keeping the input file:

p7zip [-d|--decompress] [-k|--heep] compressed.ext.7z

Skip some checks and force compression or decompression:

p7zip [-f|--force] path/to/file

I hope you enjoyed reading this post as much as I enjoyed writing it. If you know a person who can benefit from this information, send them a link of this post. If you want to get notified about new posts, follow me on YouTube , Twitter (x) , LinkedIn , and GitHub .