Kill X in Linux

Source: Internet
Author: User
There are two methods: 1. Switch to another text interface (Alt + Ctrl + F1 ~ 6) After logging in, you can use this command: killall x
2. VI/etc/inittab
Change default5 to default3

If you want to prevent the system from logging on to the image and directly entering the character state after the startup, you can modify the/etc/inittab file as follows (KDE operation ):
Right-click the/etc/inittab file and select the advanced editor to open the file. The following content is displayed:
#
# Inittab & nbsp; this file describes how the INIT process shocould set up
# & Nbsp; the system in a certain run-level.
#
# Author: & nbsp; Miquel van smoorenburg,
# & Nbsp; modified for RHS Linux by Marc Ewing and Donnie Barnes
# <P> # default runlevel. The runlevels used by RHS are:
# & Nbsp; 0-halt (do not set initdefault to this)
# & Nbsp; 1-Single User Mode
# & Nbsp; 2-multiuser, without NFS (the same as 3, if you do not have networking)
# & Nbsp; 3-full multiuser Mode
# & Nbsp; 4-unused
# & Nbsp; 5-X11
# & Nbsp; 6-Reboot (do not set initdefault to this)
#
ID: 5: initdefault: <p> change 5 in the last row to 3, so that the system does not log on to the image. I will also introduce the other numbers:
0: stopped (do not set it to the default startup level)
1: single-user mode
2: multiple users, no NFS (If you do not configure the network, this level is the same as 3)
3: full multi-user mode
4: Do not use
5: X11 graphic mode
6: restart (do not set it to the default startup level)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.