SoFunction
Updated on 2025-03-02

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

Switching of graphical interface and command line interface under linux

I guess many people who like to use Linux systems will not encounter this problem, because the linux graphical interface will occupy some system resources and is not that "easy to use".

1. Switch between graphical interface and command line interface

If the Linux system has "full set", then the Linux boot opportunity will enter the graphical interface by default, and you can use it[CTRL]+[ALT]+F2Switch to the command line interface (similar to Windows' DOS)

If you want to switch to the graphical interface, use[CTRL]+[ALT]+F7Switch.

If the system has a graphical interface installed, but the command line interface is entered at the beginning, you can only start using the startx command.

So how to change the interface when the system is turned on?

2. Modify the interface entered by the system startup

This is configured in /etc/inittab.

#Start the graphical interfaceid:5:initdefault: 
#Start the command line interfaceid:3:initdefault:

If the installation system does not select a graphical interface, /etc/inittab is not configured.

Summarize

The above is personal experience. I hope you can give you a reference and I hope you can support me more.