LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   command to close X (https://www.linuxquestions.org/questions/linux-newbie-8/command-to-close-x-886403/)

Knightron 06-14-2011 11:03 PM

command to close X
 
hi guys i know the command to start the x server is "startx" and ctrl alt delete is the keyboard short cut or atleast on slackware, to close X. i wanted to know what the comand is though.

markush 06-15-2011 12:57 AM

If you boot into runlevel 4 (on Slackware "with X") you can execute "telinit 3" as root.

You can as well configure <CTRL>+<ALT>+<BACKSPACE> to close the X-server, this can be configured in the /etc/X11/xorg.conf.d/90-keyboard-layout.conf file (if you're running Slackware).

If your X-Server is using HAL you may look for a ??-keyboard.fdi file in your /etc/hal/fdi/policy/ directory or edit your xorg.conf (if you have any)

Markus

jv2112 06-15-2011 04:41 AM

This is a distro specific question.


:twocents: Debian Option : /etc/init.d/gdm3 stop


Which one are you running ? :confused:

repo 06-15-2011 04:45 AM

Try
Code:

#init 3
or
Code:

#init 1
This can however verify depending on the distro.
Look in
Code:

/etc/inittab
for the runlevels of your distro

Kind regards

brianL 06-15-2011 04:56 AM

See what the All-Knowing Wikipedia has to say about runlevels:
http://en.wikipedia.org/wiki/Linux_Runlevels

bsat 06-16-2011 06:26 AM

if you are using a gnome desktop

pkill gdm

might also work.


All times are GMT -5. The time now is 05:03 PM.