Pages

Kill All Chrome Instance at once (Linux+ Windows)

Windows users can follow this instructions here.
Or simply use command




        taskkill /F /IM chrome.exe



Linux geeks can use this command 


                         pkill -9 chrome 
(on Linux if u have chromium installed the process name changes so command will change to pkill -9 chromium) 


this command is equivalent to command 
kill -9 `ps -A |grep chrome| cut -d "?" -f1`


How This works?
I am sure that, most of the Linux users can easily figure it out, but for those who want explanation here you go...
Command
  ps -A          list all the processes
  grep chorme     will filter only those process which has name as chrome
  cut -d "?"     will cut the process Id potion of the out put.
and
  kill -9   kills a process ,
so above command will kill all the process with name chrome.
Please Note that this command will work on those processes which are not command line (mostly launched from UI ) (i.e whose tty field is "?")

2 comments:

  1. A Equivalent simpler version of -
    kill -9 `ps -A |grep chrome| cut -d "?" -f1`

    pkill -9 chrome

    ReplyDelete

Your comment will inspire me, Please leave your comment