Linux skill command details how to use Linux skill command

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.