Linux systemd Units and Timers Cheat Sheet/Run command in transient scope

Place an existing process subtree under a systemd scope.

Section: User Units and Transient Units

Run command in transient scope

bash
bash
systemd-run --scope rsync -av ./src/ /mnt/backup/
Explanation

Useful for interactive commands you still want systemd to track.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing User Units and Transient Units
Run a transient service
Create and run a one-off transient unit.
OpenIn sheetbashsame section
List user units
Show units under the user service manager.
OpenIn sheetbashsame section
Enable user service
Enable and start a per-user service.
OpenIn sheetbashsame section
Enable linger for user
Keep user services running without an active login session.
OpenIn sheetbashsame section
List timers
Show active timers and next run times.
List socket units
Show socket-activated units.