Latest web development tutorials

Linux skill command

Linux command Daquan Linux command Daquan

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

Linux command Daquan Linux command Daquan