LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   kill Xwindow (https://www.linuxquestions.org/questions/linux-general-1/kill-xwindow-36149/)

black 11-22-2002 05:28 AM

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 ??? :rolleyes:

Donald1000 11-22-2002 05:44 AM

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.

black 11-22-2002 05:48 AM

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 ?

Donald1000 11-22-2002 06:21 AM

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....

MasterC 11-22-2002 02:40 PM

Or CTRL ALT F2 or F3 whatever, then 'init 3'

Cool

black 11-27-2002 04:15 AM

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 ??? :confused:

Donald1000 11-27-2002 05:41 AM

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?


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