How to: Stop X.Org Server

www.lautt‮c.iru‬om
How to: Stop X.Org Server

The X.Org Server is the core component of the X Window System, which provides a graphical interface for Linux and Unix-like operating systems. To stop the X.Org Server, you can use one of the following methods:

  1. Use the init system:

If your system uses the init system, you can use the init command to stop the X.Org Server. For example, on Ubuntu or Debian, you can use the following command:

sudo init 3

This will stop the X.Org Server and switch to runlevel 3, which is a multi-user command-line mode.

  1. Use the systemctl command:

If your system uses the systemd init system, you can use the systemctl command to stop the X.Org Server. For example, on CentOS or Fedora, you can use the following command:

sudo systemctl stop gdm

This will stop the X.Org Server and switch to a command-line login prompt.

  1. Use the telinit command:

If your system uses the sysvinit init system, you can use the telinit command to stop the X.Org Server. For example, on CentOS or Fedora, you can use the following command:

sudo telinit 3

This will stop the X.Org Server and switch to runlevel 3, which is a multi-user command-line mode.

Created Time:2017-10-29 22:08:42  Author:lautturi