change working env: targets Flashcards
A target unit’s main purpose is to synchronize
with the other units on a computer when it boots up,
or when it is instructed to change states.
The most common use for a target
is to get the system into a new state,
target
show all unit files for available targets
systemctl list-unit-files -t
show all loaded and active unit files
systemctl list-unit -t
list out default target
systemctl get-default
change default target to a different target
systemctl set-default
will change the running state of the system from current target to a different target
systemctl isolate <target></target>
almost identical to the System V Init sing-user mode and allows the root user to repair a system
systemctl rescue
will run the reboot.target that is the same as typing reboot at the cmd prompt
systemctl reboot
perform a complete shutdown of the system by isolating the system to the poweroff.target - same thing as typing poweroff at cmd prompt
systemctl poweroff