Starting in Red Hat Enterprise Linux 7, the systemd is the default init system. The systemctl utility is the tool of choice when managing systemd components like the targets. If you have installed your Red Hat Enterprise Linux using the graphical user interface (GUI), you can use systemctl to change to the regular console. To see your current default, run systemctl get-default. To change back to the command-line interface, execute systemctl set-default multi-user.target, as depicted in the image below.
Note: It won't change a thing in the current state. You will see the change in your next restart of the server.
After restarting the server, we can see the results — a login request in the command line interface.
More Linux articles
- Setting up static IP address for Linux: Easier than you think
- Sending email from Linux terminal: Efficient and powerful solution
- Using the Linux command line for basic file handling
- PsychOS: A retro-styled Linux distro for your old PCs
- Reading text files the easy way with PowerShell and Linux bash shell
More Quick Tips articles
- Using location in a consistent way in your ARM template parameters
- Using environment as variables in your Azure DevOps pipelines
- Removing Log Analytics with the soft-delete option
- Using conditions in ARM templates when deploying infrastructure-as-code
- Monitor your Azure VM from your mobile device by scanning a QR code