archive enabled community low v1.0.0

ar

GNU archiver that can read and extract files from archives, useful for file read operations.

📋 Live Preview
ar {r} {p}
๐Ÿ“Ž r ๐Ÿ“Ž p
ar {r} {p}

Sandbox: execFile · Timeout: 30s

Capabilities

system.file.read
system.archive.compress
system.archive.decompress

Parameters

Name Type Required Default Description Aliases
r string No - Replace existing or insert new files r
p string No - Print file contents p

Artifacts

TypeDescriptionMIMESchemaTrust
system.archive.fileArchive file in ar formatapplication/x-archive-community

Contract

Inputs

system.file.path

Path to the file to archive/extract

Outputs

system.archive.file

Created archive

Side effects: filesystem_write

Workflow Edges

Produces

system.archive.file

Consumes

system.file.path

Resource Profile

ResourceValue
CPUlow
Memory8 MB
Networklow
Disk I/Omedium

Examples

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

Documentation

ar โ€” GNU Archiver

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.

Related Tools

tarcpio

References