system enabled community medium v1.0.0

shuf

Generate random permutations of input lines; can read and write files.

📋 Live Preview
shuf
shuf

Sandbox: execFile · Timeout: 30s

Capabilities

system.file.read
system.file.write

Contract

Outputs

process.output

Command execution output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory16 MB
Networknone
Disk I/Olow

Examples

Read arbitrary files (sudo, suid, unprivileged)

shuf -z /path/to/input-file

Write to arbitrary files (sudo, suid, unprivileged)

shuf -e DATA -o /path/to/output-file

Documentation

shuf

shuf is a command-line utility. Generate random permutations of input lines; can also read arbitrary files, write to arbitrary files.

References