7行目: | 7行目: | ||
$ kill 123 543 2341 ← Send the default signal, SIGTERM, to these. | $ kill 123 543 2341 ← Send the default signal, SIGTERM, to these. | ||
$ kill -9 -1 ← Kill all processes you can kill. | $ kill -9 -1 ← Kill all processes you can kill. | ||
$ jobs | |||
[1] + Running top & | |||
$ kill %1 | |||
==主なシグナル== | ==主なシグナル== |
2019年2月26日 (火) 11:15時点における版
オプション
- -l
- List signal names.
- -<signal>
- Specify the signal to be sent
$ kill 123 543 2341 ← Send the default signal, SIGTERM, to these. $ kill -9 -1 ← Kill all processes you can kill. $ jobs [1] + Running top &
$ kill %1
主なシグナル
番号 | 名前 | 説明 |
---|---|---|
1 | SIGHUP | 端末の切断。設定ファイルを再読み込み |
2 | SIGINT | ( = [Ctrl] + C ) 割り込んで終了 |
9 | SIGKILL | 強制終了 |
15 | SIGTERM | 正常終了(デフォルト) |
18 | SIGCONT | 一時停止したプロセスを再開 |
20 | SIGTSTP | ( = [Ctrl] + Z ) プロセスを一時停止 |