Which command configures the system to boot directly into a graphical target by default?

Prepare for the Red Hat Certified Systems Admin Exam EX200. Enhance your skills with interactive quizzes, flashcards, and detailed explanations. Ace your certification exam today!

Multiple Choice

Which command configures the system to boot directly into a graphical target by default?

Explanation:
In systemd, the boot state is controlled by targets, and the default target determines what state the system starts in after boot. The graphical.target brings up the graphical user interface and all related services (like a display manager). Configuring the system to boot into this state by default means making graphical.target the default target, so future boots start with the GUI. The command to do that is systemctl set-default graphical.target. It updates the /etc/systemd/system/default.target symlink to point to graphical.target, ensuring the GUI starts on every boot. Using systemctl isolate graphical.target would switch to the GUI immediately for the current session but wouldn’t change the default boot target. Booting with multi-user.target would be non-graphical, so that wouldn't meet the requirement.

In systemd, the boot state is controlled by targets, and the default target determines what state the system starts in after boot. The graphical.target brings up the graphical user interface and all related services (like a display manager). Configuring the system to boot into this state by default means making graphical.target the default target, so future boots start with the GUI.

The command to do that is systemctl set-default graphical.target. It updates the /etc/systemd/system/default.target symlink to point to graphical.target, ensuring the GUI starts on every boot. Using systemctl isolate graphical.target would switch to the GUI immediately for the current session but wouldn’t change the default boot target. Booting with multi-user.target would be non-graphical, so that wouldn't meet the requirement.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy