Linux systemd Services Cheat Sheet/Switch to a target now

Immediately isolate a target.

Section: Dependencies and Targets

Switch to a target now

bash
bash
sudo systemctl isolate rescue.target
Explanation

Can stop unrelated units to reach the target state.

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 Dependencies and Targets
Show default target
Display the default boot target.
OpenIn sheetbashsame section
Set default target
Change the default boot target.
OpenIn sheetbashsame section
List dependencies
Show dependency tree for a unit.
OpenIn sheetbashsame section
List reverse dependencies
Show units depending on a unit.
OpenIn sheetbashsame section
Enter rescue mode
Switch to rescue target.
OpenIn sheetbash2 tag match
Start a service
Start a unit immediately.
OpenIn sheetbash1 tag match