Question: 4. Change the current target unit to rescue.target (also called single-user mode, runlevel 1, and rescue mode). a. Working with root privileges, give the following
4. Change the current target unit to rescue.target (also called single-user mode,
runlevel 1, and rescue mode).
a. Working with root privileges, give the following command to change to
rescue.target. In a multiuser or graphical environment you would want
to make sure no one else was logged in before giving this command. See
Changing the Current Runlevel on page 445 of Sobell for more
information.
$ su -c 'systemctl isolate rescue.target'
After you give this command, the system shuts down the GUI, displays a
textual CLI, and displays the following prompt:
Give root password for maintenance
(or type Control-D to continue)
b. If you press CONTROL-D at this point, the system reboots to graphical.target.
Instead, type the root password and press RETURN; the system enters
rescue.target (single-user mode) and displays a root prompt:
[root@linux ~]#
You are working with root privileges in rescue.target.
c. Give the following command to confirm the system is running in
rescue.target (rescue mode):
[root@linux ~]# systemctl list-units --type=target | egrep 'rescue|multi-user|graphical
rescue.target loaded active active Rescue Mode
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
