Home Linux How to find a specific process id for a running Application or Process in Linux?
 
 
 

How to find a specific process id for a running Application or Process in Linux?

PDF Print E-mail

Question: How to find a specific process id for a running Application or Process in Linux?


NOTE: Tested in Ubuntu 9.04

Answer:

In this example we want to find the process id for Skype.

  1. In the command line type in the command below
    pgrep -l skype
  2. This will list the process id together with the process name for Skype.
    -l = List the name of the process
    4322 skype
  3. To list only the process id type the command without the -l option
    pgrep skype
  4. This will only list the process id
    4322



+/-
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
Security Please input the anti-spam code that you can read in the image.
 

Go Daddy $7.49 .com Sale!