Home  >  Article  >  Operation and Maintenance  >  How to switch between graphical interface and command line interface in Linux

How to switch between graphical interface and command line interface in Linux

王林
王林Original
2020-05-25 11:02:115572browse

How to switch between graphical interface and command line interface in Linux

If you want to switch directly between the command line mode and the graphical interface, you only need to execute the following two commands.

1. Switch the graphical interface to the command line mode

init 3

2. Switch the command line mode to the graphical interface

init 5

If we want to automatically enter the graphical interface or command line when booting interface, you can modify the /etc/inittab file.

Enter the vi /etc/inittab command to modify the id:5:initdefault configuration.

How to switch between graphical interface and command line interface in Linux

Recommended tutorial: linux tutorial

The above is the detailed content of How to switch between graphical interface and command line interface in Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn