7z

Verified for current stable LTS

7z Commands

7z command syntax with verified terminal examples.

Commands

16 commands for 7z

7z

7z Command: Extract Archive Preserve Directory Structure

7z x <path/to/archive.7z>
7z

7z Command: Extract Archive To Stdout

7z x <path/to/archive.7z> -so
7z

7z Command: Set Compression Level

7z a <path/to/archive.7z> -mx=<0|1|3|5|7|9> <path/to/file_or_directory>
7z

7z Command: Add File Or Directory To Archive

7z a <path/to/archive.7z> <path/to/file_or_directory>
7z

7z Command: Encrypt Existing Archive

7z a <path/to/encrypted.7z> -p<password> -mhe=on <path/to/archive.7z>
7z

7z Command: Extract Archive To Specific Directory

7z x <path/to/archive.7z> -o<path/to/output>
7z

7z Command: Archive Using Specific Type

7z a -t<7z|bzip2|gzip|lzip|tar|zip> <path/to/archive> <path/to/file_or_directory>
7z

7z Command: List Archive Contents

7z l <path/to/archive.7z>
7z

7z Command: Encrypt

7z a <path/to/encrypted.7z> -p<password> -mhe=on <path/to/archive.7z>
7z

7z Command: Extract Stdout

7z x <path/to/archive.7z> -so
7z

7z Command: Add

7z a <path/to/archive.7z> <path/to/file_or_directory>
7z

7z Command: Extract Preserve Structure

7z x <path/to/archive.7z>
7z

7z Command: Extract Specific Directory

7z x <path/to/archive.7z> -o<path/to/output>
7z

7z Command: Archive Specific Type

7z a -t<7z|bzip2|gzip|lzip|tar|zip> <path/to/archive> <path/to/file_or_directory>
7z

7z Command: List Contents

7z l <path/to/archive.7z>
7z

7z Command: Set Compression Level

7z a <path/to/archive.7z> -mx=<0|1|3|5|7|9> <path/to/file_or_directory>

Suggest a 7z Command

Submit missing workflows, corrections, or verified alternatives for this tool.

FAQ

Coverage: Focused examples for common 7z workflows.

Verified version: current stable LTS.

Verification: Test commands in a disposable workspace and submit notes for edge cases.