Forrest logo
back to the p7zip tool

p7zip:tldr:275a4

p7zip: Decompress a file keeping the input file.
$ p7zip -d -k ${compressed-ext}.7z
try on your machine

The command "p7zip -d -k ${compressed-ext}.7z" is used to decompress a file with the extension ".7z" using the p7zip program.

Here's the breakdown of the command:

  • "p7zip": This is the command to invoke the p7zip program, which is a command-line file archiver with support for the 7z archive format.

  • "-d": This option specifies that we want to decompress the archive file specified.

  • "-k": This option preserves the original files, meaning it keeps a copy of the compressed file even after decompression.

  • "${compressed-ext}.7z": This is the filename of the compressed file to be decompressed. "${compressed-ext}" is a placeholder for the actual filename, so you should replace it with the appropriate value.

Overall, this command will decompress the specified ".7z" file, keeping a copy of the original compressed file.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the p7zip tool