system enabled community medium v1.0.0

update-alternatives

Manage symbolic links for default commands; can read arbitrary files.

📋 Live Preview
update-alternatives
update-alternatives

Sandbox: execFile · Timeout: 30s

Capabilities

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

Write to arbitrary files (sudo, suid)

echo DATA >/path/to/temp-file
update-alternatives --force --install /path/to/output-file x /path/to/temp-file 0

Documentation

update-alternatives

update-alternatives is a command-line utility. Manage symbolic links for default commands; can also write to arbitrary files.

References