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 ~]#
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 ~]#
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 ~]#
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 ~]#