Answers 100% Solved
files used for systemd targets Correct Ans-/etc/systemd/system/default.target,
/etc/systemd/system/
set of systemd units that should be started to reach a desired state Correct Ans-systemd
targets
4 systemd targets Correct Ans-graphical.target
multi-user.target
rescue.target (basic init complete)
emergency.target (initramfs pivot complete and system root mounted on / read-only.)
List target dependencies Correct Ans-systemctl list-dependencies <target> | grep target
View all available targets Correct Ans-systemctl list-units --type=target --all
overview of all targets installed on disk Correct Ans-systemctl list-unit-files --type=target --all
switch to a different target Correct Ans-systemctl isolate <target>
, view default target Correct Ans-systemctl get-default
set default target Correct Ans-systemctl set-default <target>
special option can be appended to the kernel command line from the boot loader to select a
different target @ runtime Correct Ans-systemd.unit=rescue.target
Procedure to boot into a different target for troubleshooting Correct Ans-1) Reboot
2) Interrupt Boot loader countdown
3) Move cursor to entry to be started
4) Press e to edit
5) Move cursor to line with linux16
6) append systemd.unit=desired.target
7) press ctrl+x to boot
kernel command line to interrupt the boot process before control is handed over from the
initramfs Correct Ans-rd.break
can be used to filter for specific boots with the -b Correct Ans-journalctl
Steps to reset root password Correct Ans-1) reboot system
2) interrupt boot loader