Targets in systemd
Similar to System V’s runlevels, systemd has targets. Targets are groups of units that represent different levels of operation.
Some common targets are:
| Target | Description |
|---|---|
| rescue.target | Single-user mode |
| multi-user.target | Multi-user mode with CLI via console or network |
| graphical.target | Multi-user mode with GUI |
Useful commands
List unit files of targets
systemctl list-unit-files --type=target
List unit files of targets matching search (wildcard is *)
systemctl list-unit-files --type=target "{:SearchQuery:}"
Get default target
systemctl get-default
Set default target
systemctl set-default {:TargetName:}
Switch to other target
systemctl isolate {:TargetName:}