Background: Graphical interface is very beautiful, but now do not need a graphical interface, only the command line can be, so the graphical interface from the start to close. Body: Centos: Change the file/etc/inittab one line id:5:initdefault:
Change 5 to 3.
This should be the most original and Google came out the most common answer, according to the Linux default operating level to set, where,
0 indicates shutdown.
1 single-user command-line mode
2 Multi-user but cannot use Network File system mode, also command line mode
3 multi-user mode, also command line mode
4 Not yet used
5 Graphical interface mode
6 indicates a restart.
Successful Kylin system:
The system clearly stated in the/etc/inittab file that it does not use the/etc/inittab file, but rather uses the SYSTEMD. The specific change method is:
Change the soft connection of the/etc/systemd/system/default.target.
If you want to open it with a graphical interface,
Root$:ln-s/lib/systemd/system/graphical.target/etc/systemd/system/default.target
If you want to open it in terminal mode,
Root$:ln-s/lib/systemd/system/multi-user.target/etc/systemd/system/default.target
Ubuntu System: (15.xx or above version of the test does not work, no matter how to change, the graphical interface can be started)
Root$:vim/etc/default/grub
Will grub_cmdline_linux_default= "Quiet Splash"
Change to grub_cmdline_linux_default= "text"
After you update grub,
Root$:update-grub
Some Linux systems start with a graphical interface that changes to the command line interface