您的位置:首页 > 其它

killall

2015-09-02 15:31 531 查看
NAME

killall - kill processes by name 使用名字杀死进程

SYNOPSIS

killall [-Z,--context pattern] [-e,--exact] [-g,--process-group]

[-i,--interactive] [-q,--quiet] [-r,--regexp] [-s,--signal sig-

nal] [-u,--user user] [-v,--verbose] [-w,--wait] [-I,--ignore-

case] [-V,--version] [--] name ...

killall -l

killall -V,--version

DESCRIPTION

killall sends a signal to all processes running any of the spec-

ified commands. If no signal name is specified, SIGTERM is sent.

killall发送一个信号给所有特殊指令的运行程序。如果没有指定信号名字,将发送SIGTERM信号。

Signals can be specified either by name (e.g. -HUP) or by number

(e.g. -1) or by option -s.

指定信号可以用名字或者是数字

If the command name is not regular expression (option -r) and

contains a slash (/), processes executing that particular file

will be selected for killing, independent of their name.

如果命令名字不是规范的表达式或者包含一个/,进程执行特定的文件将被选择并被杀死。不依赖于名字。

killall returns a zero return code if at least one process has

been killed for each listed command, or no commands were listed

and at least one process matched the -u and -Z search criteria.

killall returns non-zero otherwise.

如果每个被罗列的命令至少有一个进程被杀死了,killall将返回一个零值,如果没有命令被罗列,至少一个进程混合使用了-u 和-z搜索条件,killall将返回一个非零值。

A killall process never kills itself (but may kill other killall

processes).killall永远不能杀死他自己。但是可能杀死其他的killall进程。

killall的意义主要是对进程的名称发送一个signal信号的。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: