Which command sets the default target for system at boot?

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 sets the default target for system at boot?

Explanation:
Setting the default boot target in systemd is done with systemctl set-default. The default.target is a special symlink under /etc/systemd/system that points to the target the system should reach after boot. By running systemctl set-default graphical.target, you change that link so the system boots into the graphical interface next time. Similarly, systemctl set-default multi-user.target configures a text-mode boot. You can check the current default with systemctl get-default. This change is persistent across reboots, unlike using systemctl isolate at runtime to switch targets for the current session. The other listed commands don’t exist to set the default boot target, so they don’t achieve this configuration.

Setting the default boot target in systemd is done with systemctl set-default. The default.target is a special symlink under /etc/systemd/system that points to the target the system should reach after boot. By running systemctl set-default graphical.target, you change that link so the system boots into the graphical interface next time. Similarly, systemctl set-default multi-user.target configures a text-mode boot. You can check the current default with systemctl get-default. This change is persistent across reboots, unlike using systemctl isolate at runtime to switch targets for the current session. The other listed commands don’t exist to set the default boot target, so they don’t achieve this configuration.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy