how to force quit in XFCE

Kenton Brede kbrede at nixnotes.org
Fri Apr 22 15:47:49 UTC 2005


On Fri, Apr 22, 2005 at 07:51:50AM -0400, sara vasquez (sarava at verizon.net) wrote:
> so I unistalled Gnome and installed XFCE and everythinf seems fine is 
> just that today synaptic crash on me (first time since i got ubuntu that 
> XFCE crahse on me) and I don't know how to force quit an application in 
> XFCE. I mean I already loged out and restarted, but i am just wondering 
> how to do it.

If you don't have access to an xterm, hit ctrl+alt+F2 to get to console.
>From the command line you can run -

$ ps ax 

which lists processes.  You should be able to find the application
that crashed.  

Lets say firefox freezes on me.  I could run the command
$ ps ax | grep firefox

and get back -
28564 ?  Sl  0:08 /usr/lib/mozilla-firefox/firefox-bin -a firefox

The first number is the PID number which you can use to kill the program.
To kill the program you can use the following command -

$ kill 28564

If it still won't die you can more forcefully kill it with -

$ kill -9 28564

As mentioned you could also use "killall," that will work if you know for
sure what the name of the process actually is.  Sometimes the program
name and the process name aren't the same.  

Another handy tool is "pidof" which can be helpful to find the PID of a
prog you know the process name of.

Kent

-- 
"Our lives begin to end the day we become silent about things that matter."
  - Martin Luther King Jr.





More information about the ubuntu-users mailing list