File compression utility using Burrows-Wheeler algorithm that can read files via compression pipeline.
bzip2 {c} {d} ๐ c ๐ d bzip2 {c} {d} Sandbox: execFile · Timeout: 60s
system.file.read system.archive.compress system.archive.decompress | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
c | string | No | - | Compress to stdout | -c, --stdout |
d | string | No | - | Decompress | -d, --decompress |
| Type | Description | MIME | Schema | Trust |
|---|---|---|---|---|
system.archive.file | Bzip2 compressed file | application/x-bzip2 | - | community |
Inputs
system.file.path Path to file to compress
Outputs
system.archive.file Compressed file
filesystem_write Produces
system.archive.fileConsumes
system.file.path| Resource | Value |
|---|---|
| CPU | medium |
| Memory | 16 MB |
| Network | low |
| Disk I/O | medium |
Read arbitrary file via compression pipeline
bzip2 -c /path/to/input-file | bzip2 -d bzip2 compresses files using the Burrows-Wheeler algorithm. When used with sudo or SUID, it can read arbitrary files by compressing them to stdout and then decompressing. Related utilities (bzless, bzcat, bunzip2) also support privileged reads if bzip2 itself is SUID.