Setting the Default Target to Multi-User in Systemd

Which command will set the multi-user target as the default target?

The command to set the multi-user target as the default target is "systemctl set-default multi-user.target."

Understanding Default Targets in Systemd

In systemd, the default target represents the initial system state that is activated during boot. By default, the graphical.target is set as the default target, which starts the graphical user interface (GUI) on systems with a graphical environment.

Setting Multi-User Target as Default

If you want to set the multi-user target (which provides a text-based interface without the GUI) as the default, you can use the command "systemctl set-default multi-user.target." The "systemctl set-default" command is used to modify the default target. By appending "multi-user.target" to the command, you specify that the multi-user target should be set as the default.

Benefits of Using Multi-User Target

Setting the multi-user target as the default can be beneficial for systems that don't require a graphical interface or for servers where a lightweight, command-line-based environment is preferred. It allows the system to boot into a text-based environment instead of launching the GUI, which can reduce resource usage and streamline the system's operation. In conclusion, by using the "systemctl set-default multi-user.target" command in systemd, you can easily set the multi-user target as the default target, providing a more streamlined and efficient environment for your system.
← Designing an inspiring digital camera online purchasing system Reciprocating saw blades design and functionality →