GNU archiver that can read and extract files from archives, useful for file read operations.
ar {r} {p} ๐ r ๐ p ar {r} {p} Sandbox: execFile · Timeout: 30s
system.file.read system.archive.compress system.archive.decompress | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
r | string | No | - | Replace existing or insert new files | r |
p | string | No | - | Print file contents | p |
| Type | Description | MIME | Schema | Trust |
|---|---|---|---|---|
system.archive.file | Archive file in ar format | application/x-archive | - | community |
Inputs
system.file.path Path to the file to archive/extract
Outputs
system.archive.file Created archive
filesystem_write Produces
system.archive.fileConsumes
system.file.path| Resource | Value |
|---|---|
| CPU | low |
| Memory | 8 MB |
| Network | low |
| Disk I/O | medium |
Read arbitrary file by inserting it into archive then printing it
ar r /path/to/output-file /path/to/input-file
ar p /path/to/output-file ar creates, modifies, and extracts from archives. When used with sudo or SUID, it can read arbitrary files by adding them to an archive and then printing the contents.