HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

systemctl isolate — Start the specified unit with its dependencies and stop all others. Ignores the units which have `Ig

Submitted by: @import:tldr-pages··
0
Viewed 0 times
theunitcommandstartsystemctl isolatecliwithspecified
linux

Problem

How to use the systemctl isolate command: Start the specified unit with its dependencies and stop all others. Ignores the units which have IgnoreOnIsolate=yes. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#isolate%20UNIT>.

Solution

systemctl isolate — Start the specified unit with its dependencies and stop all others. Ignores the units which have IgnoreOnIsolate=yes. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#isolate%20UNIT>.

Switch to a target (assumed .target if no extension provided):
systemctl isolate {{target}}


Switch to graphical target explicitly:
systemctl isolate graphical.target


Switch to rescue (single-user) mode:
systemctl isolate rescue.target


Switch to emergency mode:
systemctl isolate emergency.target

Code Snippets

Switch to a target (assumed `.target` if no extension provided)

systemctl isolate {{target}}

Switch to graphical target explicitly

systemctl isolate graphical.target

Switch to rescue (single-user) mode

systemctl isolate rescue.target

Switch to emergency mode

systemctl isolate emergency.target

Context

tldr-pages: linux/systemctl isolate

Revisions (0)

No revisions yet.