Hi Friends,
You may face the requirement or concern, when you will need to kill many similar process with one command to save your time.
There is the command you may use for such purpose:
kill -9 `ps -ef | grep <Process_Name> | grep -v grep | awk '{print $2}'`
Note -
<Process_Name> : You need to change with the process you need to kill, having multiple pids.
You may face the requirement or concern, when you will need to kill many similar process with one command to save your time.
There is the command you may use for such purpose:
kill -9 `ps -ef | grep <Process_Name> | grep -v grep | awk '{print $2}'`
Note -
<Process_Name> : You need to change with the process you need to kill, having multiple pids.
No comments:
Post a Comment