A Linux system is running normally when the systems administrator receives an alert that one application spawned many processes. The application is consuming a lot of memory, and it will soon cause the machine to become unresponsive. Which of the following commands will stop each application process?
A. kill ‘pidof application’
B. killall application
C. kill -9 ‘ps -aux | grep application’
D. pkill -9 application
B – is correct. I don’t take this to mean stop “each” process individually but I see it as stop each of the spawned process’s at once
If a process has too many instances and a number of child processes, you can use the command ‘killall‘ which takes process name as argument in-place of process number
https://www.tecmint.com/how-to-kill-a-process-in-linux/
… stop “each” application process?
A