Difference between revisions of "Pkill"

From wikieduonline
Jump to navigation Jump to search
Line 8: Line 8:
 
               [-P ppid] [-U uid] [-g pgrp]
 
               [-P ppid] [-U uid] [-g pgrp]
 
               [-t tty] [-u euid] pattern ...
 
               [-t tty] [-u euid] pattern ...
 +
 +
 +
 +
  -x          Require an exact match of the process name, or argument list
 +
                if -f is given.  The default is to match any substring.
 +
 +
 +
 +
[[pkill -x]] ssh]]
 +
 +
  
 
== Related commands ==
 
== Related commands ==

Revision as of 08:15, 18 April 2023

wikipedia:pkill command is used to send signals to process. pkill command allows the use of extended regular expression patterns and other matching criteria.

pkill is available at least in Linux, Solaris and in Ubuntu and Debian in procps package.

usage: pkill [-signal] [-ILfilnovx] [-F pidfile] [-G gid]
             [-P ppid] [-U uid] [-g pgrp]
             [-t tty] [-u euid] pattern ...


  -x          Require an exact match of the process name, or argument list
                if -f is given.  The default is to match any substring.


pkill -x ssh]]


Related commands

See also

Advertising: