Ravi Sir's Cards › AWS
pkill vs killall
This comparison card contrasts pkill and killall. pkill is described as pattern, user, terminal. killall is described as exact process name. The card pairs pkill with flexible matching, and killall with all copies of one program.
Read card text
What this card says
Match
pkill
Pattern, user, terminal.
killall
Exact process name.
Key points
-f matches full command.
-w waits until gone.
Example
pkill -u intern1
Use when
Flexible matching.
All copies of one program.