nerdexam
CompTIACompTIA

XK0-005 · Question #561

XK0-005 Question #561: Real Exam Question with Answer & Explanation

The correct answer is C: The administrator did not set the default target to graphical.target.. The issue is that the administrator did not set the default target to graphical.target. A target is a unit of systemd that groups together other units by a common purpose or state. The graphical.target is a target that starts the graphical user interface (GUI) along with other se

System Management

Question

A Linux administrator booted up the server and was presented with a non-GUI terminal. The administrator ran the command systemctl isolate graphical.target and rebooted the system by running systemctl reboot, which fixed the issue. However, the next day the administrator was presented again with a non-GUI terminal. Which of the following is the issue?

Options

  • AThe administrator did not reboot the server properly.
  • BThe administrator did not set the default target to basic.target.
  • CThe administrator did not set the default target to graphical.target.
  • DThe administrator did not shut down the server properly.

Explanation

The issue is that the administrator did not set the default target to graphical.target. A target is a unit of systemd that groups together other units by a common purpose or state. The graphical.target is a target that starts the graphical user interface (GUI) along with other services. The administrator used the command systemct1 isolate graphical.target to switch to this target temporarily, but this does not change the default target that is activated at boot time. To make this change permanent, the administrator should have used the command systemct1 set-default graphical.target, which creates a symbolic link from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.

Topics

#systemd#Boot targets#Persistent configuration#Linux boot

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions