The Linux skill command sends a signal to the program being executed. The preset message is TERM (interrupted), and the commonly used messages are HUP, INT, KILL, STOP, CONT, and 0.
Message Syntax:-9,-SIGKILL, and-KILL. You can use-l or-L to list available messages.
Permission: all users.
Other related commands: kill
Syntax
Skill [signal to send] [options] Select program rules
General parameters:
- -F fast mode/not completed
- -I interaction mode/each action is to be confirmed
- -V: detailed output/list information of the selected program
- -W Smart warning message/not completed
- -N no action/show program code
Parameter: the rule for selecting a program can be the terminal code, user name, program code, and command name.
- -T Terminal Code (tty or pty)
- -U user name
- -P program code (pid)
- -Signals available for the c command name
The following lists known signal names, signal codes, and functions.
Name (code) |
Function/description |
ALRM 14 |
Leave |
HUP 1 |
Leave |
INT 2 |
Leave |
KILL 9 |
Exit/force close |
PIPE 13 |
Leave |
POLL |
Leave |
PROF |
Leave |
TERM 15 |
Leave |
USR1 |
Leave |
USR2 |
Leave |
VTALRM |
Leave |
STKFLT |
Exit/only applicable to i386, m68k, arm, and ppc hardware |
UNUSED |
Exit/only applicable to i386, m68k, arm, and ppc hardware |
TSTP |
Stop/generate content-related behaviors |
TTIN |
Stop/generate content-related behaviors |
TTOU |
Stop/generate content-related behaviors |
STOP |
Stop/force close |
CONT |
Restart/restart if it is in the stopped status; otherwise, ignore |
PWR |
Ignore/leave in some systems |
WINCH |
Ignore |
CHLD |
Ignore |
ABRT 6 |
Core |
FPE 8 |
Core |
ILL 4 |
Core |
QUIT 3 |
Core |
SEGV 11 |
Core |
TRAP 5 |
Core |
SYS |
Core/perhaps not yet implemented |
EMTs |
Core/perhaps not yet implemented |
BUS |
Core/core failure |
XCPU |
Core/core failure |
XFSZ |
Core/core failure |
Instance
Stop all programs on the PTY device
Skill-KILL-v pts /*
Stop three users: user1, user2, and user3
Skill-STOP user1 user2 user3