Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-14-2011, 11:03 PM   #1
Senior Member
Registered: Jan 2011
Location: Australia
Distribution: OpenSUSE
Posts: 1,432
Blog Entries: 6

Rep: Reputation: 184Reputation: 184
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.
Old 06-15-2011, 12:57 AM   #2
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
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)

Old 06-15-2011, 04:41 AM   #3
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 104Reputation: 104

This is a distro specific question.

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

Which one are you running ?
Old 06-15-2011, 04:45 AM   #4
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
#init 3
#init 1
This can however verify depending on the distro.
Look in
for the runlevels of your distro

Kind regards
Old 06-15-2011, 04:56 AM   #5
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,809
Blog Entries: 58

Rep: Reputation: Disabled
See what the All-Knowing Wikipedia has to say about runlevels:
Old 06-16-2011, 06:26 AM   #6
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
if you are using a gnome desktop

pkill gdm

might also work.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CD tray doesn't close with command X.Cyclop Linux - Hardware 2 08-11-2010 03:13 PM
Why can i not close socket with command /quit lrios Programming 11 05-08-2008 11:06 PM
command to close tcp socket powah Linux - Networking 1 08-17-2007 12:22 PM
what is the command to close the ejected hdd? jaepi Programming 8 05-02-2007 10:54 PM
Close Cdrom from command line? mikeshn Linux - Hardware 6 08-17-2003 12:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration