Forrest logo
back to context overview

systemd-run

List of commands for systemd-run:

  • systemd-run:tldr:117fa systemd-run: Start a transient service with a custom unit name and description.
    $ sudo systemd-run --unit=${name} --description=${string} ${command} ${argument1 argument2 ---}
    try on your machine
    explain this command
  • systemd-run:tldr:19d09 systemd-run: Share the terminal with the program (allowing interactive input/output) and make sure the execution details remain after the program exits.
    $ systemd-run --remain-after-exit --pty ${command}
    try on your machine
    explain this command
  • systemd-run:tldr:30089 systemd-run: Start a transient timer that periodically runs its transient service (see `man systemd.time` for calendar event format).
    $ sudo systemd-run --on-calendar=${calendar_event} ${command} ${argument1 argument2 ---}
    try on your machine
    explain this command
  • systemd-run:tldr:44feb systemd-run: Start a transient service that does not get cleaned up after it terminates with a custom environment variable.
    $ sudo systemd-run --remain-after-exit --set-env=${name}=${value} ${command} ${argument1 argument2 ---}
    try on your machine
    explain this command
  • systemd-run:tldr:55b74 systemd-run: Start a transient service under the service manager of the current user (no privileges).
    $ systemd-run --user ${command} ${argument1 argument2 ---}
    try on your machine
    explain this command
  • systemd-run:tldr:7a673 systemd-run: Set properties (e.g. CPUQuota, MemoryMax) of the process and wait until it exits.
    $ systemd-run --property MemoryMax=${memory_in_bytes} --property CPUQuota=${percentage_of_CPU_time}% --wait ${command}
    try on your machine
    explain this command
  • systemd-run:tldr:7a79e systemd-run: Use the program in a shell pipeline.
    $ ${command1} | systemd-run --pipe ${command2} | ${command3}
    try on your machine
    explain this command
  • systemd-run:tldr:cfa8d systemd-run: Start a transient service.
    $ sudo systemd-run ${command} ${argument1 argument2 ---}
    try on your machine
    explain this command
back to context overview