system enabled community medium v1.0.0

systemd-run

Run commands in transient systemd services; can execute arbitrary commands and spawn shells.

📋 Live Preview
systemd-run
systemd-run

Sandbox: execFile · Timeout: 30s

Capabilities

security.execution.command
security.privilege-escalation.shell

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

Execute arbitrary commands (sudo)

systemd-run /path/to/command

Spawn an interactive shell (sudo)

systemd-run -S

Spawn an interactive shell (sudo)

systemd-run -t /bin/sh

Documentation

systemd-run

systemd-run is a command-line utility. Run commands in transient systemd scopes/services.

References