SKILL(1) Linux User’s Manual SKILL(1)
名前
skill, snice - プロセスにシグナルを送る / プロセスの優先度を変更する
書式
skill [signal to send] [options] process selection criteria
snice [new priority] [options] process selection criteria
説明
skill のデフォルトのシグナルは TERM である。 -l や -L を用いると、指定
できるシグナルをリストできる。特に便利なシグナルには HUP, INT, KILL,
STOP, CONT, 0 などがある。デフォルト以外のシグナルの指定方法は 3 つある
。 -9 -SIGKILL -KILL。
snice のデフォルトの優先度は +4 である (snice +4 ...)。優先度の番 号 は
+20 (最も遅い) から -20 (最も速い) までである。負の優先度の数値は管理権
限のあるメンバーしか指定できない。
一般のオプション
-f 高速モード 今のところあまり効果がない
-i 対話モード 各アクションの前に確認を求める
-v 詳細表示モード 選択されたプロセスに関する情報を
表示する
-w 警告を有効にする 今のところあまり効果がない
-n 非実行モード プロセス ID の表示だけを行う
-V バージョン表示 プログラムのバージョンを表示する
プロセス選択オプション
プ ロセス選択基準 (process selection criteria) は、端末・ユーザー名・プ
ロセスID・コマンド名のいずれかである。以下のオプションを指定すると、 解
釈 方法を明示できる。このおもしろいインタフェースについては Albert を責
めないで欲しい。
-t 次の引数は端末である (tty または pty)
-u 次の引数はユーザー名である
-p 次の引数はプロセス ID 番号である
-c 次の引数はコマンド名である
シグナル
以下に skill で使える可能性のあるシグナルのリストを示す。わかるものにつ
いては番号とデフォルトの動作も示す。
名前 番号 アクション 説明
() ()
0 0 n/a シグナルを送った場合の終了コードを取得する
ALRM 14 exit
HUP 1 exit
INT 2 exit
KILL 9 exit このシグナルはブロックされない
PIPE 13 exit
POLL exit
PROF exit
TERM 15 exit
USR1 exit
USR2 exit
VTALRM exit
STKFLT exit 実装されていないかもしれない
PWR ignore システムによっては終了 (exit) するかもしれ
ない
WINCH ignore
CHLD ignore
URG ignore
TSTP stop シェルと相互作用するかもしれない
TTIN stop シェルと相互作用するかもしれない
TTOU stop シェルと相互作用するかもしれない
STOP stop このシグナルはブロックされない
CONT restart 停止 (stop) 状態なら再開、その他なら無視
ABRT 6 core
FPE 8 core
ILL 4 core
QUIT 3 core
SEGV 11 core
TRAP 5 core
SYS core 実装されていないかもしれない
EMT core 実装されていないかもしれない
BUS core コアダンプは失敗するかもしれない
XCPU core コアダンプは失敗するかもしれない
XFSZ core コアダンプは失敗するかもしれない
例
コマンド 説明
snice seti crack +7 seti と crack の速度を落とす
skill -KILL -v /dev/pts/* 新スタイルの PTY デバイスの
ユーザーを kill する
skill -STOP viro lm davem 3 人のユーザーを stop する
snice -17 root bash root のシェルを優先する
関連項目
killall(1), pkill(1), kill(1), renice(1), nice(1), signal(7), kill(2)
準拠
対応する標準はない。
著者
Albert Cahalan
SKILL(1) Linux User’s Manual SKILL(1)
NAME
skill, snice - send a signal or report process status
SYNOPSIS
skill [signal to send] [options] process selection criteria
snice [new priority] [options] process selection criteria
DESCRIPTION
These tools are probably obsolete and unportable. The command syntax is
poorly defined. Consider using the killall, pkill, and pgrep commands
instead.
The default signal for skill is TERM. Use -l or -L to list available
signals. Particularly useful signals include HUP, INT, KILL, STOP,
CONT, and 0. Alternate signals may be specified in three ways: -9
-SIGKILL -KILL.
The default priority for snice is +4. (snice +4 ...) Priority numbers
range from +20 (slowest) to -20 (fastest). Negative priority numbers
are restricted to administrative users.
GENERAL OPTIONS
-f fast mode This is not currently useful.
-i interactive use You will be asked to approve each
action.
-v verbose output Display information about selected
processes.
-w warnings enabled This is not currently useful.
-n no action This only displays the process ID.
-V show version Displays version of program.
PROCESS SELECTION OPTIONS
Selection criteria can be: terminal, user, pid, command. The options
below may be used to ensure correct interpretation. Do not blame
Albert for this interesting interface.
-t The next argument is a terminal (tty or pty).
-u The next argument is a username.
-p The next argument is a process ID number.
-c The next argument is a command name.
SIGNALS
The signals listed below may be available for use with skill. When
known, numbers and default behavior are shown.
Name Num Action Description
() ()
0 0 n/a exit code indicates if a signal may be sent
ALRM 14 exit
HUP 1 exit
INT 2 exit
KILL 9 exit this signal may not be blocked
PIPE 13 exit
POLL exit
PROF exit
TERM 15 exit
USR1 exit
USR2 exit
VTALRM exit
STKFLT exit may not be implemented
PWR ignore may exit on some systems
WINCH ignore
CHLD ignore
URG ignore
TSTP stop may interact with the shell
TTIN stop may interact with the shell
TTOU stop may interact with the shell
STOP stop this signal may not be blocked
CONT restart continue if stopped, otherwise ignore
ABRT 6 core
FPE 8 core
ILL 4 core
QUIT 3 core
SEGV 11 core
TRAP 5 core
SYS core may not be implemented
EMT core may not be implemented
BUS core core dump may fail
XCPU core core dump may fail
XFSZ core core dump may fail
EXAMPLES
Command Description
snice seti crack +7 Slow down seti and crack
skill -KILL -v /dev/pts/* Kill users on new-style PTY devices
skill -STOP viro lm davem Stop 3 users
snice -17 root bash Give priority to root’s shell
SEE ALSO
killall(1) pkill(1) kill(1) renice(1) nice(1) signal(7) kill(2)
STANDARDS
No standards apply.
AUTHOR
Albert Cahalan
コロナウイルスの日ごとの感染者数・死者数をグラフ化してみました。どの国が増加傾向にあり、どの国が終息に向かっているかを視覚化しています。
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa