Forrest logo
back to the 7z tool

7z:tldr:64881

7z: [l]ist the contents of an archive.
$ 7z l ${path-to-archive-7z}
try on your machine

This command uses the 7z utility to list the contents of an archive file in the 7z format.

Here's how it breaks down:

  • "7z" is the command-line tool that is being used.
  • "l" stands for "list" and is the command to display the contents of the archive.
  • "${path-to-archive-7z}" is a placeholder for the actual path to the archive file you want to list.

To use the command, you need to replace "${path-to-archive-7z}" with the path or location of the 7z archive file you want to list. For example, if the archive is located at "/home/user/archive.7z", you would replace "${path-to-archive-7z}" with "/home/user/archive.7z".

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