English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux skill command

Linux Command大全

The Linux skill command sends a signal to the running program, the default message is TERM (interrupt), and the commonly used messages are HUP, INT, KILL, STOP, CONT, and 0.

Messages have three writing styles:分别为 -9,-SIGKILL,-KILL, can be used -l Or -L The available messages have been listed.

Permission: All users.

Other related commands: kill

Syntax

skill [signal to send] [options] Select the rule of the program

General Parameters:

  • -f Quick Mode/Not yet completed
  • -i Interactive mode/ Each action will be confirmed
  • -v Detailed output/ List information of selected programs
  • -w Intelligent warning message/ Not yet completed
  • -n No action/ Display program code

Parameters:The selection rules for the program can be: terminal code, user name, program code, command name.

  • -t Terminal code (tty or pty)
  • -u User name
  • -p Program code (pid)
  • -c Command name available signals

The following lists known signal names, signal codes, and functions.

Name (Code)Function/Description
ALRM 14Exit
HUP 1Exit
INT 2Exit
KILL 9Exit/Forceful Shutdown
PIPE 13Exit
POLLExit
PROFExit
TERM 15Exit
USR1Exit
USR2Exit
VTALRMExit
STKFLTExit/Only applicable to i386、m68k, arm and ppc hardware
UNUSEDExit/Only applicable to i386、m68k, arm and ppc hardware
TSTPStop/Generate content-related behavior
TTINStop/Generate content-related behavior
TTOUStop/Generate content-related behavior
STOPStop/Forceful Shutdown
CONTRestart/Restart if in stop state, otherwise ignore
PWRIgnore/May exit in some systems
WINCHIgnore
CHLDIgnore
ABRT 6Core
FPE 8Core
ILL 4Core
QUIT 3Core
SEGV 11Core
TRAP 5Core
SYSCore/May not have been implemented yet
EMTCore/May not have been implemented yet
BUSCore/Core Failure
XCPUCore/Core Failure
XFSZCore/Core Failure

Online Examples

Stop all programs on PTY devices

skill -KILL -v pts/*

Stop three users user1、user2、user3

skill -STOP user1 user2 user3

Linux Command大全