Forrest logo
back to the p7zip tool

p7zip:tldr:984c8

p7zip: Archive a file keeping the input file.
$ p7zip -k ${filename}
try on your machine

The command "p7zip -k ${filename}" is used to compress a file using the p7zip tool with the options "k" and "${filename}".

Here is the breakdown of the command:

  • "p7zip": This is the command to invoke the p7zip tool. p7zip is a file archiver that supports compressing and decompressing files using the 7z format.

  • "-k": This option specifies that you want to compress the file while keeping the original file intact. The original file will not be deleted or modified during the compression process.

  • "${filename}": This is a placeholder that represents the name of the file you want to compress. You need to replace "${filename}" with the actual name of the file you wish to compress.

By running this command with the appropriate file name, the p7zip tool will create a compressed 7z archive file while preserving the original file. The compressed file will have a ".7z" extension and can be used for storage or transmission purposes.

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