Terminate Processes by Name with pkill

Use pkill to send a termination signal to every process whose name matches a pattern — no PID lookup needed.

LinuxprocesscommandTerminalLow risk
Run pkill firefox to politely ask every Firefox process to exit (SIGTERM), or pkill -KILL firefox to force-kill them instead.

01Command

Command
$ pkill firefox

02What it does

pkill walks the process table and sends a signal to each process whose name matches the pattern; the default is SIGTERM, a graceful request to exit. You can name a different signal either way: pkill -TERM firefox is the graceful form, while pkill -KILL firefox (or pkill -9 firefox) sends SIGKILL, which cannot be caught or ignored. You can also narrow the match with -u <user> to only the processes of one user.

03Risk

RiskLow risk
!Warning: pkill kills every matching process for your user, including ones you did not mean to stop — run pgrep -a <name> first to preview what will be signaled.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-09-19 · Category: System & Settings

06Related solutions