LoginSignup
1
1

More than 5 years have passed since last update.

Linuxにおいて、特定のプロセスのプロセスIDを調べる方法

Last updated at Posted at 2017-04-25

Linuxにおいて、特定のプロセスのプロセスIDを調べる方法についてまとめます。

コマンド

  • 調べたいプロセスの名前と実行しているプロセスの名前が一致している場合
$ pgrep -l {プロセス名 (部分一致可)}
  • 調べたいプロセスの名前と実行しているプロセスの名前が異なっている場合
    (ex. javaコマンドで走らせているプログラム)
$ ps ax | grep {プロセス名 (部分一致可)} | grep -v "grep"

参考文献

1
1
2

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
1
1