Linux basic commands -killall

killall command

killall command name using the process to kill the process, you can use this command to kill a group of the same name process. We can use the kill command to kill the specified process PID of the process, if we want to find the need to kill the process, we also need to use before ps commands together with grep to find the process, but these two processes into one killall , it is a good use of the command.

grammar

killall (option) (parameters)
Options
- E: long name for an exact match;
 - L: Ignore different capitalization;
 - the p-: kill the process belongs to the group of processes;
 - i: Interactive kill the process, kill the process before need to be acknowledged;
 - L: Print a list of all known signal;
 - q: if no processes were killed. Not output any information;
 - r: Use regular expression matching process name to kill;
 - S: instead of using the default specified process ID signal "SIGTERM";
 -u: kill the specified user process.

parameter

Process name: Specifies the name of the process to kill.

Examples

Kill all processes with the same name

killall we

 

Guess you like

Origin www.cnblogs.com/lj7xun/p/10983171.html