Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jan 172011

Find the process ID of a running program


The easiest way to get all the process IDs of a running program in Linux, see the following example:

#  pidof apache2
29747 29745 29700 29698 29696 29695 29687 29678 29677 29664 23931

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>