pkill [options] patternArguments explained
- pattern matches process names by default.
- -u filters by user.
- -f matches the full command line.
- -signal chooses a signal.
Common examples
pkill -u alex firefoxSignals firefox processes owned by alex.
sudo pkill -HUP nginxSends HUP to nginx processes.
| Field | Details |
|---|---|
| Command | pkill |
| Category | Processes |
| Primary use | Sends signals to processes matched by name or attributes. |
| Syntax | pkill [options] pattern |