The pkill command

look up, signal, or wait for processes based on name and other attributes 2 examples from the lessons of the IVski Linux Playground — try them in the terminal next to them.

Options in the examples

-f, --full
The pattern is normally only matched against the process name.
-u, --euid euid,...
Only match processes whose effective user ID is listed.

Examples

pkill -u student

Kill all processes by user student

pkill -f "sleep 300"

Match anywhere in the full command line

Lessons that use pkill