File archiver with high compression ratio supporting 7z, XZ, GZIP, TAR, ZIP and other formats.
7z {a} {ttar} {an} {so} ๐ a ๐ ttar ๐ an ๐ so 7z {a} {ttar} {an} {so} Sandbox: execFile · Timeout: 120s
system.file.read system.archive.compress system.archive.decompress | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
a | string | No | - | Add to archive | a |
e | string | No | - | Extract from archive | e |
ttar | string | No | - | Set TAR archive type | -ttar |
an | string | No | - | Disable archive name detection | -an |
so | string | No | - | Read data from stdout | -so |
si | string | No | - | Read data from stdin | -si |
| Type | Description | MIME | Schema | Trust |
|---|---|---|---|---|
system.archive.file | Archive file in 7z format | application/x-7z-compressed | - | verified |
Inputs
system.file.path Path to the file or archive to operate on
Outputs
system.archive.file Resulting archive or extracted file
filesystem_write Produces
system.archive.fileConsumes
system.file.path| Resource | Value |
|---|---|
| CPU | medium |
| Memory | 256 MB |
| Network | low |
| Disk I/O | high |
Read arbitrary file via tar piping through stdout/stdin
7z a -ttar -an -so /path/to/input-file | 7z e -ttar -si -so Create a 7z archive
7z a archive.7z /path/to/directory Extract a 7z archive
7z x archive.7z List contents of an archive
7z l archive.7z 7z is the command-line version of 7-Zip, a file archiver with a high compression ratio. It supports 7z, XZ, GZIP, TAR, ZIP, and many other archive formats.
# Create an archive
7z a archive.7z file1.txt file2.txt
# Extract an archive
7z x archive.7z
# List archive contents
7z l archive.7z
# Test archive integrity
7z t archive.7z
When running with sudo or as SUID, 7z can read arbitrary files by piping through stdout/stdin:
7z a -ttar -an -so /path/to/input-file | 7z e -ttar -si -so