It is more fun than windows.
By default, RedHat Linux 9.0 automatically starts X-window at startup to enter the graphic operation interface. Many Linux hardcore players are used to working on the console character interface, or some players may think that X-window is too slow to start and like intuitive and fast console operations. 1. Enter the character interface. to directly enter the console interface when Linux is started, you can edit the/etc/inittab file. Find the line ID: 5: initdefault: and change it to ID: 3: initdefault: And then restart the system. We can simply change 5 to 3 to convert the X-Window Graphic operation interface or console character interface at startup, this is because the Linux operating system has six different run levels, and the system has different States under different run levels. These six run levels are: 0: downtime (remember not to set initdefault to 0, because this will make Linux unable to start)
1: single-user mode, just like the security mode in Win9x.
2: multiple users, but not NFS.
3: full multi-user mode, standard operation level.
4: It is generally not used. In some special cases, you can use it to do something.
5: X11, which means entering the X-window system.
6: restart (remember not to set initdefault to 6, because this will make Linux continuously restart ). Among them, running level 3 is the standard console character interface mode we want to enter. 2. the free conversion character interface and the X-Window Graphic Interface after learning how to enable the automatic conversion of the X-Window Graphic operation interface and the console character operation interface, you may think, these two operation interfaces have their own advantages. Can I be greedy and have these two interfaces at the same time? In a omnipotent Linux operating system, this requirement can certainly be met. In the X-Window Graphic operation interface, press "Alt + Ctrl + function key FNN = 1 ~ 6 "to enter the console character operation interface. This means that you can have X-window and six console character operation interfaces at the same time. This is an exciting thing! On the console character operation interface, how does one return to X-window? Simply press "Alt + Ctrl + F7. In this case, seven screens are displayed in Linux by default, numbered tty1 ~ Tty7. After X-window is started, tty7 screen, tty1 ~ Tty6 is still a character screen. That is to say, you can use the "Alt + Ctrl + FN" combination key to quickly switch between the character interface and the X Window Interface. Linux users all know that X-window is a very convenient graphical interface. It can be operated with the mouse, but it also has many disadvantages: such as slow startup and running speed, insufficient stability, poor compatibility, and easy to crash. However, once the X-window system has a problem, it will not cause the entire Linux system to crash and cause data loss or system damage, because when X-window is caused by its own or application Program When response or crash is lost, we can easily exit X-window and go to the console for troubleshooting. All we need to do is press the "Alt + Ctrl + backspace" key, this means that as long as the system does not lose the response to the keyboard, any problem occurs in X-window, and the system can exit easily.
This article is from 51cto. com technical blog