0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Linux] プロセス管理_コマンド_ps, kill, updatedb, jobs

Last updated at Posted at 2025-01-29

システム、プログラム、プロセス、ジョブの関係

単位 説明
システム Linuxカーネルとユーザー空間のソフトウェア(シェル、デーモン、サービスなど)を含む全体
プログラム 実行前(実行可能)のコードやコマンド
プロセス プログラムがカーネルによってメモリ上にロードされ、CPUで実行されている状態
ジョブ シェルで起動されたバックグラウンドまたはフォアグラウンドのプロセスの単位

プロセスの監視

psコマンド

プロセスの終了

killコマンド
$ kill -[シグナル名まらはシグナルID] PID
$ kill -s [シグナル名まらはシグナルID] PID
$ kill -SIGシグナル名 PID
シグナル名 シグナルID 動作
HUP 1 ハングアップ
INT 2 キーボードからの割り込み or Ctrl+C
KILL 9 強制終了
TERM 15 終了(デフォルト)

ジョブかんり

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?