Home > DIY > Find process id (pid) by name

Find process id (pid) by name

You can find the pid of Bash by typing this into a terminal:

# ps -ax | grep bash
30892 pts/0 Ss 0:00 bash
12556 pts/0 S+ 0:00 grep bash

30892 is the process id. That last line is the search itself.

Powered by ScribeFire.

Advertisements
Categories: DIY
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: