🧀 Learn Linux

Advanced · Observation System

pkill: End process by name

Put in free practice

Syntax

pkill [-f] pattern

Options

-f
Compatible name matching

Examples

pkill worker

Usage and sandbox support

Real systems may match multiple processes, and pgrep can be executed before execution.

Hands-on exercises

Full documentation ↗

Related commands