Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to kill more than one process in linux? [closed]

Tags:

linux

I want to kill some of Apache server process in Linux.

Please help me in this.

like image 880
Mallikarjuna Reddy Avatar asked Oct 18 '12 09:10

Mallikarjuna Reddy


1 Answers

if you have pid of the processes that want to kill then use kill command.

kill pid1 [pid2 pid3 ...]

And if this doesn't kill the processes you can add -9 flag to kill command to forcefully kill the processes like

kill -9 pid1 [pid2 pid3 ...]

To get the pid of the process you can use ps command as

ps ax | grep apache

first column of output is the pid of the process.

like image 73
Harry Joy Avatar answered Nov 05 '22 17:11

Harry Joy