How to convert Graphical User Interface (GUI) to Command Line Interface (CLI) in Redhat Linux

0

In this post we will tell you how we convert the operating system user interface  GUI to CLI in Redhat Linux.


GUI- In the Graphical User Interface (GUI) we can operate the system without commands by clicking on it with the mouse.

CLI- In Command Line Interface (CLI) we can operate the operating system only through commands, there is no graphical interface visible in it.

If you do not understand then you can see the example for better understanding


1- How to check which mode is set as default in your operating system 

[root@redhat-machine ~]#
[root@redhat-machine ~]# systemctl get-default
graphical.target
[root@redhat-machine ~]# 

If Graphical.target mode is showing then your OS default mode set in graphical


If multi-user.target mode is showing then your OS default mode set in Command line



2- How to convert your operating system from GUI to CLI for temporary period
 
[root@redhat-machine ~]#
[root@redhat-machine ~]# systemctl isolate multi-user.target 
[root@redhat-machine ~]#
With this command, your system will run in command line for the temporary period but when you restart the system, it will again open in default mode i.e. graphical mode.

3- How to convert your operating system from CLI to GUI for temporary period.
[root@redhat-machine ~]#
[root@redhat-machine ~]# systemctl isolate graphical.target 
[root@redhat-machine ~]#
With this command, your system will run in graphical mode for the temporary period but when you restart the system, it will again open in default mode i.e. command line mode. 


4- How to convert your operating system from GUI to CLI for permanent.
 
[root@redhat-machine ~]#
[root@redhat-machine ~]# systemctl set-default multi-user.target 
[root@redhat-machine ~]#

With this command, your system will run in command line for the permanent and when you restart the system, it will again open in default mode i.e. command line mode.

3- How to convert your operating system from CLI to GUI for permanent.
[root@redhat-machine ~]#
[root@redhat-machine ~]# systemctl set-default graphical.target
[root@redhat-machine ~]#
With this command, your system will run in command line for the permanent and when you restart the system, it will again open in default mode i.e. graphical mode. 

Tags

Post a Comment

0Comments
Post a Comment (0)