Name
killall
Synopsis
killall [options]procname...
Kills processes specified by command or pattern match. The default
signal sent by killall is TERM
but may be specified on the command line. killall
assembles and executes a set of kill commands to accomplish its task.
Options
-
-cprocname Use with the
-tor-uoptions to limit processes that sent a signal to those matchingprocname.-
-d Print diagnostic information only about targeted processes; doesn’t send signal.
-
-h,-help,-? Print usage and exit.
-
-l List known signal names.
-
-m Interpret the
procnameas a case-insensitive regular expression for selecting real process names to send a signal to.-
-s Show the
killcommand lines that will send the signal but don’t actually execute them.-
-SIGNAL Send specified
signalto process.signalmay be a name (see-loption) or number.-
-ttty Used to further select only those processes attached to the specified
tty(procname tty), or to select all processes attached to the specifiedtty(i.e., noprocnamespecified).-
-uuser Used to further select only those processes owned by the specified
user(procname user), or to select all processes owned by the specifieduser(i.e., noprocnamespecified).-
-v Verbose output. Print the
killcommand lines that send the signal.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access