Linux skill command
Linux skill command to send a signal to the program being executed, the default message-TERM (interrupted), the message is more frequently used HUP, INT, KILL, STOP, CONT and 0.
There are three message writing: respectively -9, -SIGKILL, -KILL, you can use the -l or -L listed messages can be used.
Access: All users.
Other related commands: kill
grammar
skill [signal to send] [options] 选择程序的规则
General parameters:
- -f fast mode / not completed
- -i interactive mode / each action to be confirmed
- -v verbose output / listed in the selected program information
- -w Intelligent warning / not completed
- -n no action / display program code
Parameters: rule selection process can be: terminal code, user name, program code, the command name.
- -t terminal code (tty or pty)
- -u username
- -p program code (pid)
- Signal -c command name can be used
The following lists the known signal name, signal code, function.
名称(代号) | 功能/描述 |
---|---|
ALRM 14 | 离开 |
HUP 1 | 离开 |
INT 2 | 离开 |
KILL 9 | 离开/强迫关闭 |
PIPE 13 | 离开 |
POLL | 离开 |
PROF | 离开 |
TERM 15 | 离开 |
USR1 | 离开 |
USR2 | 离开 |
VTALRM | 离开 |
STKFLT | 离开/只适用于i386、m68k、arm 和 ppc 硬件 |
UNUSED | 离开/只适用于i386、m68k、arm 和 ppc 硬件 |
TSTP | 停止/产生与内容相关的行为 |
TTIN | 停止/产生与内容相关的行为 |
TTOU | 停止/产生与内容相关的行为 |
STOP | 停止/强迫关闭 |
CONT | 重新启动/如果在停止状态则重新启动,否则忽略 |
PWR | 忽略/在某些系统中会离开 |
WINCH | 忽略 |
CHLD | 忽略 |
ABRT 6 | 核心 |
FPE 8 | 核心 |
ILL 4 | 核心 |
QUIT 3 | 核心 |
SEGV 11 | 核心 |
TRAP 5 | 核心 |
SYS | 核心/或许尚未实作 |
EMT | 核心/或许尚未实作 |
BUS | 核心/核心失败 |
XCPU | 核心/核心失败 |
XFSZ | 核心/核心失败 |
Examples
Stop all programs on the device PTY
skill -KILL -v pts/*
Stop three user user1, user2, user3
skill -STOP user1 user2 user3