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

7zr

7zr is a command line tool used for creating, modifying, and extracting files and archives using the 7z file format. It is a part of the 7-Zip software, which is an open-source file archiver.

The tool is designed to be lightweight, efficient, and easy to use for compression and decompression tasks. It works on various operating systems, including Windows, macOS, and Linux.

7zr supports a wide range of compression algorithms, including LZMA, LZMA2, PPMd, BZip2, and others. It offers a high compression ratio, making it an ideal choice for reducing file sizes while maintaining the data integrity.

With 7zr, you can create new archives from files or directories, add or remove files from existing archives, and even update and modify the contents of an archive. Additionally, it supports encryption for secure archiving.

The tool provides options for selecting compression levels, creating self-extracting archives, and splitting large archives into smaller parts for easier transfer or storage. It can also integrate with the Windows shell, allowing users to perform archiving tasks directly from the context menu.

7zr is known for its quick execution speed and low memory usage, ensuring that compression or extraction tasks can be completed swiftly without excessive resource consumption.

While 7zr primarily supports the 7z file format, it is also capable of handling other archive formats like ZIP, GZIP, and TAR. This flexibility enables users to work with a variety of compressed file types using a single command line tool.

Overall, 7zr is a versatile and efficient command line tool that provides powerful archiving capabilities, making it a popular choice for both casual users and professionals who require fast and reliable compression and decompression functions.

List of commands for 7zr:

  • 7zr:tldr:22cac 7zr: [l]ist the contents of an archive.
    $ 7zr l ${path-to-archive-7z}
    try on your machine
    explain this command
  • 7zr:tldr:27207 7zr: Encrypt an existing archive (including file names).
    $ 7zr a ${path-to-encrypted-7z} -p${password} -mhe=${on} ${path-to-archive-7z}
    try on your machine
    explain this command
  • 7zr:tldr:28518 7zr: E[x]tract an archive preserving the original directory structure.
    $ 7zr x ${path-to-archive-7z}
    try on your machine
    explain this command
  • 7zr:tldr:7f216 7zr: E[x]tract an archive to `stdout`.
    $ 7zr x ${path-to-archive-7z} -so
    try on your machine
    explain this command
  • 7zr:tldr:81b0e 7zr: List available archive types.
    $ 7zr i
    try on your machine
    explain this command
  • 7zr:tldr:e24aa 7zr: E[x]tract an archive to a specific directory.
    $ 7zr x ${path-to-archive-7z} -o${path-to-output}
    try on your machine
    explain this command
  • 7zr:tldr:f32d6 7zr: [a]rchive a file or directory.
    $ 7zr a ${path-to-archive-7z} ${filename_or_directory}
    try on your machine
    explain this command
tool overview