LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-22-2002, 05:28 AM   #1
black
Member
 
Registered: Jul 2002
Location: nowhere
Distribution: GNU
Posts: 118

Rep: Reputation: 15
kill Xwindow


it is pity that days ago suddenly my Xwindow crashes and I have no idea how to kill it from another console, how could I handle things like this please ???
 
Old 11-22-2002, 05:44 AM   #2
Donald1000
Member
 
Registered: Oct 2002
Location: Germany
Distribution: Debian, Non-Linux: Solaris, FreeBSD
Posts: 107

Rep: Reputation: 15
Try Ctrl+Alt+F1 or F2
Try the command "ps -A" or "ps aux"
Kill X with kill -9 [pidnumber]

you can also login from another Computer, if you are running a SSH Server.
 
Old 11-22-2002, 05:48 AM   #3
black
Member
 
Registered: Jul 2002
Location: nowhere
Distribution: GNU
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Donald1000
Try Ctrl+Alt+F1 or F2
Try the command "ps -A" or "ps aux"
Kill X with kill -9 [pidnumber]

you can also login from another Computer, if you are running a SSH Server.
thanx for information.
could the command ps -A show all the processes even in other ttys as well ?
 
Old 11-22-2002, 06:21 AM   #4
Donald1000
Member
 
Registered: Oct 2002
Location: Germany
Distribution: Debian, Non-Linux: Solaris, FreeBSD
Posts: 107

Rep: Reputation: 15
Yes, you can type this in every console. But note, that you can only kill pids as root, or only processes that you have started as user.
For example user "MAMA" is starting X-Chat. Then user MAMA is allowed to kill this pid. But he's not allowed to kill f. e. proftpd or so....
 
Old 11-22-2002, 02:40 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Or CTRL ALT F2 or F3 whatever, then 'init 3'

Cool
 
Old 11-27-2002, 04:15 AM   #6
black
Member
 
Registered: Jul 2002
Location: nowhere
Distribution: GNU
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Donald1000
Yes, you can type this in every console. But note, that you can only kill pids as root, or only processes that you have started as user.
For example user "MAMA" is starting X-Chat. Then user MAMA is allowed to kill this pid. But he's not allowed to kill f. e. proftpd or so....
thanx but things a bit different to me. I could kill X as root but coulnt kill it as the user who opened X. that is, I started X as a common user named black, and then I press Ctrl+Alt+F1 and login with the same user name black, then I typed ps -e | more to check the PID of X(for example 555 here), and then typed kill 555 but output said the process has no owner, what is that please ???
 
Old 11-27-2002, 05:41 AM   #7
Donald1000
Member
 
Registered: Oct 2002
Location: Germany
Distribution: Debian, Non-Linux: Solaris, FreeBSD
Posts: 107

Rep: Reputation: 15
I think you try to kill X-Server. And this is not possible as a normal user. You can only kill Kdeinit or so, that you have started as user black.
Try "ps aux" ... is there no user for the process that you want to kill? Or is it owner root?
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What if 'kill -9' fails to kill a task? chii-chan Linux - Newbie 15 03-27-2013 03:47 PM
how to use kill to kill a batch of processes with same name? dr_zayus69 Linux - Software 2 09-03-2005 06:35 PM
Kill command could not kill Kanaflloric Linux - General 11 08-22-2005 07:18 AM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM
xwindow to xwindow connection? ziggie216 Linux - Software 1 03-18-2004 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:20 AM.

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