linux程序接收kill信号,kill(发送指定的信号到相应进程)_语法_示例_Unix&Linux命令_uc电脑园官网...

In these examples, if a command is listed as /bin/kill, it should be run with that version of the kill command.

Other commands may be run with built-in kill.

kill -9 -1

Kill all processes the user has permission to kill, except the root process (PID 1) and the kill process itself.

kill -l

List all available signal names. Sample output:

HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT

CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH POLL PWR SYS

/bin/kill -l

Same as the previous command.

/bin/kill --list

Same as the previous two commands.

/bin/kill -L

List available signals and their numbers in a table format. Sample output:

1 HUP 2 INT 3 QUIT 4 ILL 5 TRAP 6 ABRT 7 BUS

8 FPE 9 KILL 10 USR1 11 SEGV 12 USR2 13 PIPE 14 ALRM

15 TERM 16 STKFLT 17 CHLD 18 CONT 19 STOP 20 TSTP 21 TTIN

22 TTOU 23 URG 24 XCPU 25 XFSZ 26 VTALRM 27 PROF 28 WINCH

29 POLL 30 PWR 31 SYS

/bin/kill --table

Same as the previous command.

/bin/kill --list=11

Translate signal number 11 into its signal name. Output:

SEGV

kill 123 4567

Sends the default signal (KILL, signal number 9) for the processes with IDs 123 and 4567.

Those processes are terminated.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值