Forrest logo
tool overview
On this page you find all important commands for the CLI tool 7z. If the command you are looking for is missing please ask our AI.

7z

7z is a command line tool used for file compression and decompression. It is part of the open-source software called 7-Zip. The tool supports a wide range of compression formats including 7z, ZIP, GZIP, BZIP2, and TAR. It is available for Windows, macOS, and Linux operating systems. 7z provides a high compression ratio, which means it can significantly reduce the size of files to conserve storage space. It also offers strong AES-256 encryption to protect sensitive data. The command line interface provides various options and switches to perform different operations like adding files, extracting archives, testing integrity, and more. It can handle large archives and offers multi-threading for faster compression and decompression operations. 7z is often used by developers, system administrators, and power users who prefer command line tools over graphical interfaces.

List of commands for 7z:

  • 7z:tldr:0834c 7z: [a]rchive using a specific archive type.
    $ 7z a -t${select} ${path-to-archive-7z} ${filename_or_directory}
    try on your machine
    explain this command
  • 7z:tldr:0bbfa 7z: List available archive types.
    $ 7z i
    try on your machine
    explain this command
  • 7z:tldr:24731 7z: Encrypt an existing archive (including filenames).
    $ 7z a ${path-to-encrypted-7z} -p${password} -mhe=on ${path-to-archive-7z}
    try on your machine
    explain this command
  • 7z:tldr:45b03 7z: E[x]tract an archive preserving the original directory structure.
    $ 7z x ${path-to-archive-7z}
    try on your machine
    explain this command
  • 7z:tldr:64881 7z: [l]ist the contents of an archive.
    $ 7z l ${path-to-archive-7z}
    try on your machine
    explain this command
  • 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
    explain this command
  • 7z:tldr:e4dd1 7z: E[x]tract an archive to `stdout`.
    $ 7z x ${path-to-archive-7z} -so
    try on your machine
    explain this command
  • 7z:tldr:eedf3 7z: [a]dd a file or directory to a new or existing archive.
    $ 7z a ${path-to-archive-7z} ${filename_or_directory}
    try on your machine
    explain this command
tool overview