One Liner Tips : how to kill multiple process with just one line

Sometime , firefox did crash on me for don’t know what reason.
I think is because of Flash.. It was making some weird sound when tried to play a youtube video.

But even when pressed the close , exit button. (Quit_)
Upon trying to re-launch the firefox ..

something like this appear.

“there is another firefox process already running “

Hence, need to kill all Firefox process one by one.
So come the following …

$ ps xa| grep firefox| grep -v grep | awk '{print $1}' | xargs kill -9

So, after that you can re-launch the firefox again.
As it would no longer complain..

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Like

Related Post

One Response

  1. namran says:

    The server response can be checked as following :

    [namran@nb-namran ~]$ wget -O- --server-response http://dev.namran.net/index.html 2>&1 |less

    and it should shows the response as the following

    ...--2010-11-10 23:51:18-- http://dev.namran.net/index.html
    Resolving dev.namran.net... 210.48.154.27
    Connecting to dev.namran.net|210.48.154.27|:80... connected.
    HTTP request sent, awaiting response...
    HTTP/1.1 200 OK
    Date: Wed, 10 Nov 2010 15:51:20 GMT
    Server: Apache/2.2.3 (Red Hat)
    Last-Modified: Sun, 24 Oct 2010 08:54:00 GMT
    ETag: "5bf39c-d5-4935904475a00"
    Accept-Ranges: bytes
    Content-Length: 213
    Cache-Control: max-age=60, public, must-revalidate
    Expires: Thu, 15 Apr 2010 20:00:00 GMT
    Connection: close
    Content-Type: text/html; charset=UTF-8
    Length: 213 [text/html]
    Saving to: `STDOUT'
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>Loading mesinPhotostat</title>
    <meta http-equiv="REFRESH" content="0;url=http:mesinPhotostat/"></HEAD>
    <BODY>
    Loading mesinPhotostat ...
    </BODY>
    </HTML>
    Reply

Anything to add?

X