pgrep, pkill – find or signal processes by name

NAME
pgrep, pkill – find or signal processes by name

SYNOPSIS
pgrep [-Lafilnoqvx] [-F pidfile] [-G gid] [-P ppid] [-U uid] [-d delim]
[-g pgrp] [-t tty] [-u euid] pattern …
pkill [-signal] [-ILafilnovx] [-F pidfile] [-G gid] [-P ppid] [-U uid]
[-g pgrp] [-t tty] [-u euid] pattern …

DESCRIPTION
The pgrep command searches the process table on the running system and
prints the process IDs of all processes that match the criteria given on
the command line.

The pkill command searches the process table on the running system and
signals all processes that match the criteria given on the command line.

The following options are available:

Example: will kill everything with safari in the name
pkill -f safari

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *