Forrest logo
back to the 7z tool

7z:tldr:78f70

7z: E[x]tract an archive to a specific directory.
$ 7z x ${path-to-archive-7z} -o${path-to-output}
try on your machine

This command is using the 7-Zip command-line tool to extract files from a 7z archive.

Here's a breakdown of the command:

  • 7z: This is the name of the 7-Zip command-line tool.
  • x: This is the command option for extracting files from an archive.
  • ${path-to-archive-7z}: This is a placeholder for the actual path to the 7z archive file. You need to replace ${path-to-archive-7z} with the path to the desired 7z archive.
  • -o${path-to-output}: This is an option to specify the output directory or path where the extracted files will be saved. Again, you need to replace ${path-to-output} with the desired output directory or path.

By running this command, 7-Zip will extract the files from the specified 7z archive and save them to the provided output directory or path.

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 7z tool