Click to See Complete Forum and Search --> : Kill and Restart VIA Terminal?


seeker22
06-16-2001, 08:16 AM
Sometimes KDE freezes when doing drag and drop, so I push CRTL+ALT+F1 but from there I just reboot cause I dont know the commands.. can someone tell me how to kill kde and x and restart it? so I dont have to reboot that get's annoying! thanks

bdg1983
06-16-2001, 10:10 AM
You could try CTRL-ALT-BACKSPACE if KDE isn't too frozen.

seeker22
06-16-2001, 10:21 AM
yeah but I want to kill it and restart it from linux with no x windows

shaggy112
06-16-2001, 12:04 PM
yeah...there might be a pid file in /var/run (depending on distro)
otherwise do something like
ps aux | grep 'kde'

then when you have pid.

kill ###

you can do the same for 'X'.

Craig McPherson
06-16-2001, 03:05 PM
Just do this:

ps aux | grep X

Then kill -9 the X process.

seeker22
06-16-2001, 04:43 PM
Ok, and now how do I restart x and kde ? just type startx?

bdg1983
06-16-2001, 04:58 PM
I believe 'startkde' will start both. Someone correct me if I'm wrong.

seeker22
06-16-2001, 05:01 PM
Ok thankyou guys very much!