pkill <pattern>
Send the specified signal (by default SIGTERM) to each specified process
Arguments
Name | Description |
---|
pattern | Specifies an Extended Regular Expression for matching against the process names or command lines |
Options
Name | Description |
---|
--signal <signal> | Signal to send (either number or name) |
-q, --queue <value> | Integer value to be sent with the signal |
-e, --echo | Display what is killed |
-f, --full | Use full process name to match |
-g, --pgroup <PGID...> | Match listed process group IDs |
-G, --group <GID...> | Match real group IDs |
-i, --ignore-case | Match case insensitively |
-n, --newest | Select most recently started |
-o, --oldest | Select least recently started |
-O, --older <seconds> | Select where older than seconds |
-P, --parent <PPID...> | Match only child processes of the given parent |
-s, --session <SID...> | Match session IDs |
-t, --terminal <tty...> | Match by controlling terminal |
-u, --euid <ID...> | Match by effective IDs |
-U, --uid <ID...> | Match by real IDs |
-x, --exact | Match exactly with the command name |
-F, --pidfile <file> | Read PIDs from file |
-L, logpidfile | Fail if PID file is not locked |
-r, --runstates <state> | Match runstates |
--ns <PID> | Match the processes that belong to a specified PID |
--nslist <ns...> | List which namespaces will be considered for the --ns option |
-h, --help | Output help message and exit |
-V, --version | Output version information and exit |